(sl StructLevel)
| 277 | } |
| 278 | |
| 279 | func StructValidationNoTestStructCustomName(sl StructLevel) { |
| 280 | st := sl.Current().Interface().(TestStruct) |
| 281 | |
| 282 | if st.String != "bad value" { |
| 283 | sl.ReportError(st.String, "String", "", "badvalueteststruct", "bad value") |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | func StructValidationTestStructInvalid(sl StructLevel) { |
| 288 | st := sl.Current().Interface().(TestStruct) |
nothing calls this directly
no test coverage detected
searching dependent graphs…