MCPcopy
hub / github.com/go-gorm/gorm / TestNilCondition

Function TestNilCondition

statement_test.go:38–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestNilCondition(t *testing.T) {
39 s := new(Statement)
40 if len(s.BuildCondition(nil)) != 0 {
41 t.Errorf("Nil condition should be empty")
42 }
43}
44
45func TestNameMatcher(t *testing.T) {
46 for k, v := range map[string][]string{

Callers

nothing calls this directly

Calls 1

BuildConditionMethod · 0.80

Tested by

no test coverage detected