Commit Graph

20 Commits (67ad75242ae521981399d91d11456d2814e35343)

Author SHA1 Message Date
Vinícius Garcia 67ad75242a Improve some error messages 2022-08-27 12:33:18 -03:00
Vinícius Garcia 86dd623eac Improve some error messages 2022-08-27 12:28:39 -03:00
Vinícius Garcia 8620600d01 Revert "Decouple ksql.DB from TagInfoCache so we can replace it during tests"
This reverts commit 74cb87bea0.

This was done because I noticed this first commit was unnecessary.

This original commit was written in order to allow tests where
the cache would return errors, but I noticed there is a way
of provoking these errors without the need of an extra layer
of abstraction.

Thus, in order to keep the code simpler and also avoid an extra
level of indirection I am undoing this change.
2022-08-27 12:18:02 -03:00
Vinícius Garcia 4b37adc905 Add more tests to ksql.Query() 2022-08-27 12:16:46 -03:00
Vinícius Garcia 74cb87bea0 Decouple ksql.DB from TagInfoCache so we can replace it during tests 2022-08-24 22:45:24 -03:00
Vinícius Garcia 45d8ef4491 Finishes testing all error cases in the .Transaction() method 2022-08-03 21:05:20 -03:00
Vinícius Garcia 25e77f3f36 Improve code coverage for .Transaction() 2022-08-03 20:58:09 -03:00
Vinícius Garcia 06b8855621 Improve test coverate on .Transaction() 2022-08-03 20:46:32 -03:00
Vinícius Garcia b5f2deac02 Add a few more tests to Transaction 2022-08-03 20:11:05 -03:00
Vinícius Garcia 752e6bb0a1 Add some tests for the Patch function with composite keys 2022-07-25 23:47:06 -03:00
Vinícius Garcia dc345c501b Minor refactor on tests 2022-07-25 23:04:41 -03:00
Vinícius Garcia 0425eb1123 Add test for Patch with composite keys 2022-07-25 22:49:51 -03:00
Vinícius Garcia 5328be8564 Add more tests to Delete 2022-07-25 19:59:36 -03:00
Jadson Medeiros e464f3b6ea chenged reference from assert.NotEqual to tt.AssertNotEqual 2022-07-06 21:53:23 -03:00
Jadson Medeiros 985254ad3e applied new refactor to test lib 2022-07-06 21:43:17 -03:00
Jadson Medeiros a1b97b1e9a changed the test lib reference 2022-07-05 21:43:56 -03:00
Vinícius Garcia af6ee27e3a Add error check for unexported fields with the ksql tag 2022-05-02 23:11:31 -03:00
Vinícius Garcia 1ed7684b6d Add case-insensitive support for database columns
Some databases (maybe all of them) will set the database column
names to lowercase.

This was problematic because we needed to match these names
with the ksql tags, which were not lowercased.

Now we support both versions, lowercased or not.
2022-04-30 13:01:03 -03:00
Vinícius Garcia e5d1de061b Since golint is deprecated we upgraded to staticheck instead 2022-04-20 15:37:26 -03:00
Vinícius Garcia 8eb3c86410 Refactor all adapters as separate modules 2022-03-15 13:03:41 -03:00