Add Go report card.
This commit is contained in:
parent
556578cec9
commit
b927769d5a
4 changed files with 7 additions and 12 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# Jet
|
||||
|
||||
[](https://goreportcard.com/report/github.com/go-jet/jet)
|
||||
[](http://godoc.org/github.com/go-jet/jet)
|
||||
[](https://circleci.com/gh/go-jet/jet/tree/develop)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
6
internal/3rdparty/snaker/snaker_test.go
vendored
6
internal/3rdparty/snaker/snaker_test.go
vendored
|
|
@ -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"))
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue