Add Go report card.

This commit is contained in:
go-jet 2019-07-18 18:51:13 +02:00
parent 556578cec9
commit b927769d5a
4 changed files with 7 additions and 12 deletions

View file

@ -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)

View file

@ -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)
}

View file

@ -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"))
})
})

View file

@ -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) {