MCPcopy Create free account
hub / github.com/cmu-db/benchbase / test_minimal_config

Function test_minimal_config

scripts/anonymization/src/test.py:62–74  ·  view source on GitHub ↗

Test method for a minimal config where only dp-anonymization is applied

()

Source from the content-addressed store, hash-verified

60
61
62def test_minimal_config():
63 """Test method for a minimal config where only dp-anonymization is applied
64 """
65
66 parameters = ET.fromstring(MINIMAL_CONFIG)
67
68 only_dp_auto = parameters.find("table")
69 config_parser = XMLParser(only_dp_auto)
70 anon_config, sens_config, cont_config = config_parser.get_config()
71
72 assert anon_config is not None
73 assert sens_config is None
74 assert cont_config is None

Callers

nothing calls this directly

Calls 2

get_configMethod · 0.95
XMLParserClass · 0.90

Tested by

no test coverage detected