Lines Matching refs:expectFailure
23 static void expectFailure(StringRef JSONDatabase, StringRef Explanation) { in expectFailure() function
31 expectFailure("", "Empty database"); in TEST()
32 expectFailure("{", "Invalid JSON"); in TEST()
33 expectFailure("[[]]", "Array instead of object"); in TEST()
34 expectFailure("[{\"a\":[]}]", "Array instead of value"); in TEST()
35 expectFailure("[{\"a\":\"b\"}]", "Unknown key"); in TEST()
36 expectFailure("[{[]:\"\"}]", "Incorrectly typed entry"); in TEST()
37 expectFailure("[{}]", "Empty entry"); in TEST()
38 expectFailure("[{\"directory\":\"\",\"command\":\"\"}]", "Missing file"); in TEST()
39 expectFailure("[{\"directory\":\"\",\"file\":\"\"}]", "Missing command or arguments"); in TEST()
40 expectFailure("[{\"command\":\"\",\"file\":\"\"}]", "Missing directory"); in TEST()
41 expectFailure("[{\"directory\":\"\",\"arguments\":[]}]", "Missing file"); in TEST()
42 expectFailure("[{\"arguments\":\"\",\"file\":\"\"}]", "Missing directory"); in TEST()
43 expectFailure("[{\"directory\":\"\",\"arguments\":\"\",\"file\":\"\"}]", "Arguments not array"); in TEST()
44 expectFailure("[{\"directory\":\"\",\"command\":[],\"file\":\"\"}]", "Command not string"); in TEST()
45 expectFailure("[{\"directory\":\"\",\"arguments\":[[]],\"file\":\"\"}]", in TEST()