7 Commits

Author SHA1 Message Date
Vinícius Garcia
a9487aae55 Remove Update method deprecated on Feb 2022 2023-05-21 11:10:20 -03:00
Vinícius Garcia
4c3ee41976 Add tests for the new ksql.MockResult struct 2022-02-22 17:24:57 -03:00
Vinícius Garcia
2e1aa80770 Breaking Change: changes the Exec() signature so it returns an extra value
The signature was updated from

- `Exec(...) (rowsAffected int64, _ error)`

To:

- `Exec(...) (ksql.Result, error)`

Result is an interface, so it should be easy to mock, we are also
providing a new builtin mock struct + constructor to make it even easier:

Building new mock Result: `ksql.NewMockResult(lastInsertID int64, rowsAffected int64) Result`
2022-02-22 16:49:48 -03:00
Vinícius Garcia
7a57e38228 Deprecate Update() in favor of a better fn name: Patch() 2022-02-22 16:14:15 -03:00
Vinícius Garcia
23efe48869 Add final tests to the Mock struct 2021-12-31 01:04:34 -03:00
Vinícius Garcia
3613ad769a Add more tests to the mocks for codecov 2021-12-31 00:41:20 -03:00
Vinícius Garcia
0ff7a92d72 Add tests for the error messages produced by the Mock() 2021-12-30 12:12:33 -03:00