test: Unsupported argument type

This commit is contained in:
jamesread 2022-10-19 12:42:22 +01:00
parent fadc616a67
commit b14a1f411d
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ func TestSanitizeUnsafe(t *testing.T) {
assert.Nil(t, TypeSafetyCheck("", "_zomg_ c:/ haxxor ' bobby tables && rm -rf ", "very_dangerous_raw_string"))
}
func TestSanitizeUnimplemented(t *testing.T) {
err := TypeSafetyCheck("", "I am a happy little argument", "greeting_type")
assert.NotNil(t, err, "Test an argument type that does not exist")
}
func testingExecutor() (*Executor, *config.Config) {
e := DefaultExecutor()