diff --git a/README.md b/README.md index b2b2408..d74d41d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Jet +[![Go Report Card](https://goreportcard.com/badge/github.com/go-jet/jet)](https://goreportcard.com/report/github.com/go-jet/jet) [![Documentation](https://godoc.org/github.com/go-jet/jet?status.svg)](http://godoc.org/github.com/go-jet/jet) [![CircleCI](https://circleci.com/gh/go-jet/jet/tree/develop.svg?style=svg&circle-token=97f255c6a4a3ab6590ea2e9195eb3ebf9f97b4a7)](https://circleci.com/gh/go-jet/jet/tree/develop) diff --git a/func_expression.go b/func_expression.go index 835cfe7..84c55b0 100644 --- a/func_expression.go +++ b/func_expression.go @@ -348,12 +348,12 @@ func TO_DATE(dateStr, format StringExpression) DateExpression { return newDateFunc("TO_DATE", dateStr, format) } -// TO_NUMBER converst string to numeric using format +// TO_NUMBER converts string to numeric using format func TO_NUMBER(floatStr, format StringExpression) FloatExpression { return newFloatFunc("TO_NUMBER", floatStr, format) } -// TO_TIMESTAMP converst string to time stamp with time zone using format +// TO_TIMESTAMP converts string to time stamp with time zone using format func TO_TIMESTAMP(timestampzStr, format StringExpression) TimestampzExpression { return newTimestampzFunc("TO_TIMESTAMP", timestampzStr, format) } diff --git a/internal/3rdparty/snaker/snaker_test.go b/internal/3rdparty/snaker/snaker_test.go index 443409a..d77678f 100644 --- a/internal/3rdparty/snaker/snaker_test.go +++ b/internal/3rdparty/snaker/snaker_test.go @@ -15,7 +15,7 @@ var _ = Describe("Snaker", func() { Expect(CamelToSnake("One")).To(Equal("one")) }) - It("should return an uppercase string as seperate words", func() { + It("should return an uppercase string as separate words", func() { Expect(CamelToSnake("ONE")).To(Equal("o_n_e")) }) @@ -48,11 +48,11 @@ var _ = Describe("Snaker", func() { Expect(CamelToSnake("HelloHTTPSConnectionID")).To(Equal("hello_https_connection_id")) }) - It("sould work with concat initialisms", func() { + It("should work with concat initialisms", func() { Expect(CamelToSnake("HTTPSID")).To(Equal("https_id")) }) - It("sould work with initialism where only certain characters are uppercase", func() { + It("should work with initialism where only certain characters are uppercase", func() { Expect(CamelToSnake("OAuthClient")).To(Equal("oauth_client")) }) }) diff --git a/tests/insert_test.go b/tests/insert_test.go index 35fd8ab..b5783c8 100644 --- a/tests/insert_test.go +++ b/tests/insert_test.go @@ -106,13 +106,7 @@ INSERT INTO test_sample.link (url, name) VALUES assertStatementSql(t, query, expectedSQL, "http://www.duckduckgo.com", "Duck Duck go") - result, err := query.Exec(db) - - assert.NilError(t, err) - - rowsAffected, err := result.RowsAffected() - - assert.Equal(t, rowsAffected, int64(1)) + assertExec(t, query, 1) } func TestInsertModelsObject(t *testing.T) {