(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func 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 | } |
nothing calls this directly
no test coverage detected