MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_function_metadata_eq

Function test_function_metadata_eq

tests/parseutils/test_function_metadata.py:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def test_function_metadata_eq():
5 f1 = FunctionMetadata("s", "f", ["x"], ["integer"], [], "int", False, False, False, False, None)
6 f2 = FunctionMetadata("s", "f", ["x"], ["integer"], [], "int", False, False, False, False, None)
7 f3 = FunctionMetadata("s", "g", ["x"], ["integer"], [], "int", False, False, False, False, None)
8 assert f1 == f2
9 assert f1 != f3
10 assert not (f1 != f2)
11 assert not (f1 == f3)
12 assert hash(f1) == hash(f2)
13 assert hash(f1) != hash(f3)

Callers

nothing calls this directly

Calls 1

FunctionMetadataClass · 0.90

Tested by

no test coverage detected