@@ -2386,6 +2386,127 @@ def test_get_warnings_summary_report():
2386
2386
expected_warnings_summary_report
2387
2387
)
2388
2388
2389
+ sketch_report_list = [
2390
+ {
2391
+ compilesketches .CompileSketches .ReportKeys .warnings : {
2392
+ compilesketches .CompileSketches .ReportKeys .delta : {
2393
+ compilesketches .CompileSketches .ReportKeys .absolute : 3
2394
+ }
2395
+ },
2396
+ },
2397
+ {
2398
+ compilesketches .CompileSketches .ReportKeys .warnings : {
2399
+ compilesketches .CompileSketches .ReportKeys .delta : {
2400
+ compilesketches .CompileSketches .ReportKeys .absolute : 42
2401
+ }
2402
+ }
2403
+ }
2404
+ ]
2405
+
2406
+ expected_warnings_summary_report = {
2407
+ compilesketches .CompileSketches .ReportKeys .delta : {
2408
+ compilesketches .CompileSketches .ReportKeys .absolute : {
2409
+ compilesketches .CompileSketches .ReportKeys .minimum : 3 ,
2410
+ compilesketches .CompileSketches .ReportKeys .maximum : 42
2411
+ }
2412
+ }
2413
+ }
2414
+
2415
+ assert compile_sketches .get_warnings_summary_report (sketch_report_list = sketch_report_list ) == (
2416
+ expected_warnings_summary_report
2417
+ )
2418
+
2419
+ # N/As
2420
+ sketch_report_list = [
2421
+ {
2422
+ compilesketches .CompileSketches .ReportKeys .warnings : {
2423
+ compilesketches .CompileSketches .ReportKeys .delta : {
2424
+ compilesketches .CompileSketches .ReportKeys .absolute : compile_sketches .not_applicable_indicator
2425
+ }
2426
+ },
2427
+ },
2428
+ {
2429
+ compilesketches .CompileSketches .ReportKeys .warnings : {
2430
+ compilesketches .CompileSketches .ReportKeys .delta : {
2431
+ compilesketches .CompileSketches .ReportKeys .absolute : 3
2432
+ }
2433
+ }
2434
+ }
2435
+ ]
2436
+
2437
+ expected_warnings_summary_report = {
2438
+ compilesketches .CompileSketches .ReportKeys .delta : {
2439
+ compilesketches .CompileSketches .ReportKeys .absolute : {
2440
+ compilesketches .CompileSketches .ReportKeys .minimum : 3 ,
2441
+ compilesketches .CompileSketches .ReportKeys .maximum : 3
2442
+ }
2443
+ }
2444
+ }
2445
+
2446
+ assert compile_sketches .get_warnings_summary_report (sketch_report_list = sketch_report_list ) == (
2447
+ expected_warnings_summary_report
2448
+ )
2449
+
2450
+ sketch_report_list = [
2451
+ {
2452
+ compilesketches .CompileSketches .ReportKeys .warnings : {
2453
+ compilesketches .CompileSketches .ReportKeys .delta : {
2454
+ compilesketches .CompileSketches .ReportKeys .absolute : 42
2455
+ }
2456
+ },
2457
+ },
2458
+ {
2459
+ compilesketches .CompileSketches .ReportKeys .warnings : {
2460
+ compilesketches .CompileSketches .ReportKeys .delta : {
2461
+ compilesketches .CompileSketches .ReportKeys .absolute : compile_sketches .not_applicable_indicator
2462
+ }
2463
+ }
2464
+ }
2465
+ ]
2466
+
2467
+ expected_warnings_summary_report = {
2468
+ compilesketches .CompileSketches .ReportKeys .delta : {
2469
+ compilesketches .CompileSketches .ReportKeys .absolute : {
2470
+ compilesketches .CompileSketches .ReportKeys .minimum : 42 ,
2471
+ compilesketches .CompileSketches .ReportKeys .maximum : 42
2472
+ }
2473
+ }
2474
+ }
2475
+
2476
+ assert compile_sketches .get_warnings_summary_report (sketch_report_list = sketch_report_list ) == (
2477
+ expected_warnings_summary_report
2478
+ )
2479
+
2480
+ sketch_report_list = [
2481
+ {
2482
+ compilesketches .CompileSketches .ReportKeys .warnings : {
2483
+ compilesketches .CompileSketches .ReportKeys .delta : {
2484
+ compilesketches .CompileSketches .ReportKeys .absolute : compile_sketches .not_applicable_indicator
2485
+ }
2486
+ },
2487
+ },
2488
+ {
2489
+ compilesketches .CompileSketches .ReportKeys .warnings : {
2490
+ compilesketches .CompileSketches .ReportKeys .delta : {
2491
+ compilesketches .CompileSketches .ReportKeys .absolute : compile_sketches .not_applicable_indicator
2492
+ }
2493
+ }
2494
+ }
2495
+ ]
2496
+
2497
+ expected_warnings_summary_report = {
2498
+ compilesketches .CompileSketches .ReportKeys .delta : {
2499
+ compilesketches .CompileSketches .ReportKeys .absolute : {
2500
+ compilesketches .CompileSketches .ReportKeys .minimum : compile_sketches .not_applicable_indicator ,
2501
+ compilesketches .CompileSketches .ReportKeys .maximum : compile_sketches .not_applicable_indicator
2502
+ }
2503
+ }
2504
+ }
2505
+
2506
+ assert compile_sketches .get_warnings_summary_report (sketch_report_list = sketch_report_list ) == (
2507
+ expected_warnings_summary_report
2508
+ )
2509
+
2389
2510
# Test with deltas disabled
2390
2511
sketch_report_list = [
2391
2512
{
0 commit comments