(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestParseCheckbox(t *testing.T) { |
| 55 | testCases := []validationTestCase{ |
| 56 | {"[x]", true, "true", ""}, |
| 57 | {"[X]", true, "true", ""}, |
| 58 | {"[]", true, "false", ""}, |
| 59 | {"[ ]", true, "false", ""}, |
| 60 | {"- [x] Howdy", true, "true", ""}, |
| 61 | {"- [ ] Howdy", true, "false", ""}, |
| 62 | {"not a checkbox", false, "not a checkbox", "could not parse checkbox"}, |
| 63 | } |
| 64 | runValidationTests(t, testCases, ParseCheckbox, "ParseCheckbox") |
| 65 | } |
| 66 | |
| 67 | func TestParseNumber(t *testing.T) { |
| 68 | testCases := []struct { |
nothing calls this directly
no test coverage detected