MCPcopy Create free account
hub / github.com/aguinet/dragonffi / test_errors

Method test_errors

bindings/python/tests/test_errors.py:24–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22
23class ErrorsTest(DFFITest):
24 def test_errors(self):
25 FFI = self.FFI
26
27 with self.assertRaises(Exception):
28 FFI.compile("this is invalid code")
29
30 with self.assertRaises(Exception):
31 FFI.compile("this is invalid code again")
32
33 FFI.compile("int foo(int a, int b) { return a+b; }")
34
35if __name__ == '__main__':
36 unittest.main()

Callers

nothing calls this directly

Calls 1

compileMethod · 0.45

Tested by

no test coverage detected