MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / Test_setOptions

Function Test_setOptions

pkg/sql2code/sql2code_test.go:163–185  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

161}
162
163func Test_setOptions(t *testing.T) {
164 a := &Args{
165 Package: "Package",
166 GormType: true,
167 JSONTag: true,
168 ForceTableName: true,
169 Charset: "Charset",
170 Collation: "Collation",
171 TablePrefix: "TablePrefix",
172 ColumnPrefix: "ColumnPrefix",
173 NoNullType: true,
174 NullStyle: "sql",
175 IsWebProto: true,
176 IsExtendedAPI: true,
177 }
178
179 o := setOptions(a)
180 assert.NotNil(t, o)
181 a.NullStyle = "ptr"
182 assert.NotNil(t, o)
183 a.NullStyle = "default"
184 assert.NotNil(t, o)
185}

Callers

nothing calls this directly

Calls 1

setOptionsFunction · 0.85

Tested by

no test coverage detected