You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
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)
The text was updated successfully, but these errors were encountered: