MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / test_recon_result_serialization

Function test_recon_result_serialization

tests/test_recon_engine.py:84–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def test_recon_result_serialization():
85 from recon_engine import ReconResult, ReconType
86 result = ReconResult(recon_type=ReconType.TLS_AUDIT, target="https://example.com")
87 result.status = "ok"
88 result.duration_seconds = 1.5
89 d = result.to_dict()
90 assert d["recon_type"] == "tls_audit"
91 assert d["target"] == "https://example.com"
92 assert d["status"] == "ok"
93 assert d["duration_seconds"] == 1.5
94 assert d["findings"] == []
95
96
97def test_recon_scan_state_serialization():

Callers

nothing calls this directly

Calls 2

to_dictMethod · 0.95
ReconResultClass · 0.90

Tested by

no test coverage detected