()
| 2 | |
| 3 | |
| 4 | def test_function_metadata_eq(): |
| 5 | f1 = FunctionMetadata( |
| 6 | 's', 'f', ['x'], ['integer'], [], 'int', False, False, False, None |
| 7 | ) |
| 8 | f2 = FunctionMetadata( |
| 9 | 's', 'f', ['x'], ['integer'], [], 'int', False, False, False, None |
| 10 | ) |
| 11 | f3 = FunctionMetadata( |
| 12 | 's', 'g', ['x'], ['integer'], [], 'int', False, False, False, None |
| 13 | ) |
| 14 | assert f1 == f2 |
| 15 | assert f1 != f3 |
| 16 | assert not (f1 != f2) |
| 17 | assert not (f1 == f3) |
| 18 | assert hash(f1) == hash(f2) |
| 19 | assert hash(f1) != hash(f3) |
nothing calls this directly
no test coverage detected