소스 검색

test: Unsupported argument type

jamesread 3 년 전
부모
커밋
b14a1f411d
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      internal/executor/executor_test.go

+ 7 - 0
internal/executor/executor_test.go

@@ -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()