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

Function test_full_config

scripts/anonymization/src/test.py:43–59  ·  view source on GitHub ↗

Test method for a full config with dp-anonymization, continuous and sensitive values

()

Source from the content-addressed store, hash-verified

41
42
43def test_full_config():
44 """Test method for a full config with dp-anonymization, continuous and sensitive values"""
45
46 parameters = ET.fromstring(FULL_CONFIG)
47
48 full_anon = parameters.find("table")
49 config_parser = XMLParser(full_anon)
50 anon_config, sens_config, cont_config = config_parser.get_config()
51
52 assert anon_config is not None
53 assert sens_config is not None
54 assert cont_config is not None
55
56 assert anon_config.table_name == "item"
57 assert anon_config.epsilon == "1.0"
58 assert anon_config.preproc_eps == "0.0"
59 assert anon_config.algorithm == "aim"
60
61
62def test_minimal_config():

Callers

nothing calls this directly

Calls 2

get_configMethod · 0.95
XMLParserClass · 0.90

Tested by

no test coverage detected