Skip to content

Releases: Selvatico/go-mocket

v1.0.7 – Documentation Update

22 Nov 14:50
c368d41
Compare
Choose a tag to compare

No code was harm in the making of this release
Only documentation update so that a few gotchas are clearer so everyone using it will not waste time.

v1.0.6 – Fixed Linting Issues

29 Oct 15:22
0d27527
Compare
Choose a tag to compare

Linting issues were fixed and we now have an A+ on the Go Report Card

v1.0.5 – Readme update

24 Oct 05:21
b7a2ceb
Compare
Choose a tag to compare

Documentation was moved in the code (see DOCUMENTATION.md)
And a failing test was fixed

v1.0.4

08 Aug 14:34
Compare
Choose a tag to compare

Now it's possible to pass different type values to the mock

v1.0.3

21 Jun 13:08
Compare
Choose a tag to compare

Support of any error type to be mocked as a result

WithError allows to set an error to any matched query.
For example

functionality_test.go
...
// in tests you write following
Mock.NewMock().WithQuery(`SELECT * FROM "campaign"`).WithError(sql.ErrNoRows) 
// rest part of test
...


functionality.go
...
// in order to be able to test following functionality in your code
if err:=DB.Find(&a, Campaign{UUID: uuid}).Error; err == sql.ErrNoRows {
 //some code here
}
...

v1.0.2

08 Jun 07:21
Compare
Choose a tag to compare

Support prepared statements with $ sign

Safe register

06 Jun 10:58
Compare
Choose a tag to compare
  • Added safe register functionality

First release

06 Jun 07:03
Compare
Choose a tag to compare
v1.0.0

insert id tests