MCPcopy Create free account
hub / github.com/1Password/for-open-source / TestParseCheckbox

Function TestParseCheckbox

script/validator_test.go:54–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

52}
53
54func 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
67func TestParseNumber(t *testing.T) {
68 testCases := []struct {

Callers

nothing calls this directly

Calls 1

runValidationTestsFunction · 0.85

Tested by

no test coverage detected