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