StackOverflow Questions for Tag: testify

IamGhale
IamGhale

Reputation: 1240

Testing a service by mocking repository with testify/mock fails

Score: 1

Views: 422

Answers: 1

Read More
akko
akko

Reputation: 639

How to pass an ellipsis argument to a function mocked with testify?

Score: 1

Views: 166

Answers: 1

Read More
Abner Matheus
Abner Matheus

Reputation: 83

Strange error when mocking using testfy in golang

Score: 0

Views: 42

Answers: 1

Read More
beni0888
beni0888

Reputation: 1234

Mock go function that modifies and returns the value passed as argument

Score: 5

Views: 3419

Answers: 2

Read More
Riteek Srivastava
Riteek Srivastava

Reputation: 101

Error `The code you are testing needs to make 1 more call(s)` in testify package

Score: 0

Views: 11761

Answers: 4

Read More

How to return a mock from a mock in testify/mock with Golang?

Score: -1

Views: 32

Answers: 1

Read More
Carmageddon
Carmageddon

Reputation: 2829

Difference between InDelta and InEpsilon

Score: 7

Views: 2589

Answers: 1

Read More
Paymahn Moghadasian
Paymahn Moghadasian

Reputation: 10329

How to run testify setup/teardown with table tests using stretchr/testify in golang?

Score: 9

Views: 11292

Answers: 2

Read More
vercingortix
vercingortix

Reputation: 249

How to unit test a Cobra CLI command which requires internal mocks?

Score: 3

Views: 2526

Answers: 1

Read More
aldm
aldm

Reputation: 379

Mocking does not work as expected go lang

Score: -1

Views: 302

Answers: 1

Read More
wandering-tales
wandering-tales

Reputation: 171

How to effectively organize tests for Gin/GORM based web-apps?

Score: 1

Views: 92

Answers: 0

Read More
akalpaki
akalpaki

Reputation: 9

How can I mock a function with no input or output in testify?

Score: -3

Views: 732

Answers: 1

Read More
yakob abada
yakob abada

Reputation: 1287

What is better to use Equal or EqualError

Score: 1

Views: 183

Answers: 1

Read More
red888
red888

Reputation: 31520

How do I prevent testify command line args from leaking into my Cobra application?

Score: 1

Views: 120

Answers: 0

Read More
Craig Jones
Craig Jones

Reputation: 2627

Separating unit tests and integration tests in Go

Score: 156

Views: 96884

Answers: 7

Read More
Ruchir Jain
Ruchir Jain

Reputation: 11

Are functions on struct defined in a test file visible in other projects?

Score: -1

Views: 29

Answers: 1

Read More
Gregorio Di Stefano
Gregorio Di Stefano

Reputation: 1203

Mocking method from golang package

Score: 3

Views: 6253

Answers: 5

Read More
Fatih
Fatih

Reputation: 105

golang unit test failed Expected nil, but got: "null\n"

Score: 0

Views: 1414

Answers: 1

Read More
GregariousGainz
GregariousGainz

Reputation: 71

Writing Tests in Go by Receiving Interfaces and Returning Structs

Score: 4

Views: 322

Answers: 1

Read More
user2184212
user2184212

Reputation: 19

How do you mock calls on structs (e.g. csv.Writer) in Go?

Score: 0

Views: 409

Answers: 1

Read More
PreviousPage 1Next