-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_integration.exs
More file actions
26 lines (21 loc) · 899 Bytes
/
test_integration.exs
File metadata and controls
26 lines (21 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Test Hypatia integration with verisim-data
IO.puts("=== Hypatia VeriSimDB Integration Test ===\n")
# Fetch all scans
scans = Hypatia.VerisimdbConnector.fetch_all_scans()
IO.puts("✓ Loaded #{length(scans)} scans from verisim-data")
# Generate summary
summary = Hypatia.PatternAnalyzer.generate_summary(scans)
IO.puts("\n=== Summary ===")
IO.puts("Total repos: #{summary.total_repos}")
IO.puts("Total weak points: #{summary.total_weak_points}")
IO.puts("\n=== Per-Repo Details ===")
Enum.each(scans, fn scan ->
weak_count = length(Map.get(scan.scan, "weak_points", []))
IO.puts(" #{scan.repo}: #{weak_count} weak points")
end)
# Test pattern analyzer
{:ok, analysis} = Hypatia.PatternAnalyzer.analyze_all_scans()
IO.puts("\n=== Pattern Analysis ===")
IO.puts("Scan count: #{analysis.scan_count}")
IO.puts("Facts file: #{analysis.facts_file}")
IO.puts("\n✓ Integration test complete!")