(sl StructLevel)
| 285 | } |
| 286 | |
| 287 | func StructValidationTestStructInvalid(sl StructLevel) { |
| 288 | st := sl.Current().Interface().(TestStruct) |
| 289 | |
| 290 | if st.String != "bad value" { |
| 291 | sl.ReportError(nil, "StringVal", "String", "badvalueteststruct", "bad value") |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | func StructValidationTestStructReturnValidationErrors(sl StructLevel) { |
| 296 | s := sl.Current().Interface().(TestStructReturnValidationErrors) |
nothing calls this directly
no test coverage detected
searching dependent graphs…