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

Function TestParseInput

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

Source from the content-addressed store, hash-verified

25}
26
27func TestParseInput(t *testing.T) {
28 testCases := []validationTestCase{
29 {"", true, "", ""},
30 {"_No response_", true, "", ""},
31 {"None", true, "", ""},
32 {"hello", true, "hello", ""},
33 {"Testing <b>formatting</b> and <a href=\"#\">link</a> stripping", true, "Testing formatting and link stripping", ""},
34 }
35 runValidationTests(t, testCases, ParseInput, "ParseInput")
36}
37
38func TestParsePlainString(t *testing.T) {
39 testCases := []validationTestCase{

Callers

nothing calls this directly

Calls 1

runValidationTestsFunction · 0.85

Tested by

no test coverage detected