Lines Matching refs:expectFailure
27 static void expectFailure(StringRef JSONDatabase, StringRef Explanation) { in expectFailure() function
36 expectFailure("", "Empty database"); in TEST()
37 expectFailure("{", "Invalid JSON"); in TEST()
38 expectFailure("[[]]", "Array instead of object"); in TEST()
39 expectFailure("[{\"a\":[]}]", "Array instead of value"); in TEST()
40 expectFailure("[{\"a\":\"b\"}]", "Unknown key"); in TEST()
41 expectFailure("[{[]:\"\"}]", "Incorrectly typed entry"); in TEST()
42 expectFailure("[{}]", "Empty entry"); in TEST()
43 expectFailure("[{\"directory\":\"\",\"command\":\"\"}]", "Missing file"); in TEST()
44 expectFailure("[{\"directory\":\"\",\"file\":\"\"}]", "Missing command or arguments"); in TEST()
45 expectFailure("[{\"command\":\"\",\"file\":\"\"}]", "Missing directory"); in TEST()
46 expectFailure("[{\"directory\":\"\",\"arguments\":[]}]", "Missing file"); in TEST()
47 expectFailure("[{\"arguments\":\"\",\"file\":\"\"}]", "Missing directory"); in TEST()
48 expectFailure("[{\"directory\":\"\",\"arguments\":\"\",\"file\":\"\"}]", "Arguments not array"); in TEST()
49 expectFailure("[{\"directory\":\"\",\"command\":[],\"file\":\"\"}]", "Command not string"); in TEST()
50 expectFailure("[{\"directory\":\"\",\"arguments\":[[]],\"file\":\"\"}]", in TEST()
52 expectFailure("[{\"output\":[]}]", "Expected strings as value."); in TEST()