Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issues with tests #3

Open
richard-mauri opened this issue Jul 19, 2019 · 0 comments
Open

Compilation issues with tests #3

richard-mauri opened this issue Jul 19, 2019 · 0 comments

Comments

@richard-mauri
Copy link

I am using go version go1.11.4 darwin/amd64 with export GO111MODULE=on

i$ go test ./bank

github.com/nikitsenka/bank-go/bank [github.com/nikitsenka/bank-go/bank.test]

bank/main_test.go:13:2: undefined: Init
bank/main_test.go:20:22: not enough arguments in call to NewClient
have (number)
want (*sql.DB, int)

bank/main_test.go:32:16: not enough arguments in call to NewTransaction
have (int, int, number)
want (*sql.DB, int, int, int)
bank/main_test.go:34:26: not enough arguments in call to CheckBalance
have (int)
want (*sql.DB, int)
bank/main_test.go:39:26: not enough arguments in call to CheckBalance
have (int)
want (*sql.DB, int)
bank/main_test.go:49:24: not enough arguments in call to CreateClient
have (Client)
want (*sql.DB, Client)
bank/main_test.go:58:29: not enough arguments in call to CreateTransaction
have (Transaction)
want (*sql.DB, Transaction)
FAIL github.com/nikitsenka/bank-go/bank [build failed]

$ find . -name "*go"|xargs grep NewClient
./bank/bank.go:func NewClient(p *sql.DB, balance int) Client {
./bank/main_test.go: client1 := NewClient(1000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant