MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / test_function_metadata_eq

Function test_function_metadata_eq

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

Source from the content-addressed store, hash-verified

2
3
4def 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)

Callers

nothing calls this directly

Calls 1

FunctionMetadataClass · 0.90

Tested by

no test coverage detected