예제 #1
0
 def test_non_existent_option_binary(self):
     self.assertEqual(
         hc.has_analyzer_option("non-existent-binary-Yg4pEna5P7", [""]),
         False)
예제 #2
0
 def test_existing_option(self):
     self.assertEqual(
         hc.has_analyzer_option("clang", ["-analyzer-display-progress"]),
         True)
예제 #3
0
 def test_non_existing_option(self):
     self.assertEqual(
         hc.has_analyzer_option("clang", ["-non-existent-feature"]), False)
예제 #4
0
 def test_non_existent_option_binary_throws(self):
     with self.assertRaises(OSError):
         hc.has_analyzer_option("non-existent-binary-Yg4pEna5P7", [""])