@@ -487,19 +487,19 @@ def test_parse_cli_output(self):
487
487
]
488
488
)
489
489
490
- report = parse_cli_output (Path ('syntaxTests/scoping/library_inherited2.sol' ), LIBRARY_INHERITED2_SOL_CLI_OUTPUT )
490
+ report = parse_cli_output (Path ('syntaxTests/scoping/library_inherited2.sol' ), LIBRARY_INHERITED2_SOL_CLI_OUTPUT , 0 )
491
491
self .assertEqual (report , expected_report )
492
492
493
493
def test_parse_cli_output_should_report_error_on_compiler_errors (self ):
494
494
expected_report = FileReport (file_name = Path ('syntaxTests/pragma/unknown_pragma.sol' ), contract_reports = None )
495
495
496
- report = parse_cli_output (Path ('syntaxTests/pragma/unknown_pragma.sol' ), UNKNOWN_PRAGMA_SOL_CLI_OUTPUT )
496
+ report = parse_cli_output (Path ('syntaxTests/pragma/unknown_pragma.sol' ), UNKNOWN_PRAGMA_SOL_CLI_OUTPUT , 0 )
497
497
self .assertEqual (report , expected_report )
498
498
499
499
def test_parse_cli_output_should_report_error_on_empty_output (self ):
500
500
expected_report = FileReport (file_name = Path ('file.sol' ), contract_reports = None )
501
501
502
- self .assertEqual (parse_cli_output (Path ('file.sol' ), '' ), expected_report )
502
+ self .assertEqual (parse_cli_output (Path ('file.sol' ), '' , 0 ), expected_report )
503
503
504
504
def test_parse_cli_output_should_report_missing_bytecode_and_metadata (self ):
505
505
compiler_output = dedent ("""\
@@ -541,22 +541,25 @@ def test_parse_cli_output_should_report_missing_bytecode_and_metadata(self):
541
541
]
542
542
)
543
543
544
- self .assertEqual (parse_cli_output (Path ('syntaxTests/scoping/library_inherited2.sol' ), compiler_output ), expected_report )
544
+ self .assertEqual (
545
+ parse_cli_output (Path ('syntaxTests/scoping/library_inherited2.sol' ), compiler_output , 0 ),
546
+ expected_report
547
+ )
545
548
546
549
def test_parse_cli_output_should_report_error_on_unimplemented_feature_error (self ):
547
550
expected_report = FileReport (file_name = Path ('file.sol' ), contract_reports = None )
548
551
549
- self .assertEqual (parse_cli_output (Path ('file.sol' ), UNIMPLEMENTED_FEATURE_CLI_OUTPUT ), expected_report )
552
+ self .assertEqual (parse_cli_output (Path ('file.sol' ), UNIMPLEMENTED_FEATURE_CLI_OUTPUT , 0 ), expected_report )
550
553
551
554
def test_parse_cli_output_should_report_error_on_stack_too_deep_error (self ):
552
555
expected_report = FileReport (file_name = Path ('file.sol' ), contract_reports = None )
553
556
554
- self .assertEqual (parse_cli_output (Path ('file.sol' ), STACK_TOO_DEEP_CLI_OUTPUT ), expected_report )
557
+ self .assertEqual (parse_cli_output (Path ('file.sol' ), STACK_TOO_DEEP_CLI_OUTPUT , 0 ), expected_report )
555
558
556
559
def test_parse_cli_output_should_report_error_on_code_generation_error (self ):
557
560
expected_report = FileReport (file_name = Path ('file.sol' ), contract_reports = None )
558
561
559
- self .assertEqual (parse_cli_output (Path ('file.sol' ), CODE_GENERATION_ERROR_CLI_OUTPUT ), expected_report )
562
+ self .assertEqual (parse_cli_output (Path ('file.sol' ), CODE_GENERATION_ERROR_CLI_OUTPUT , 0 ), expected_report )
560
563
561
564
def test_parse_cli_output_should_handle_output_from_solc_0_4_0 (self ):
562
565
expected_report = FileReport (
@@ -571,7 +574,7 @@ def test_parse_cli_output_should_handle_output_from_solc_0_4_0(self):
571
574
]
572
575
)
573
576
574
- self .assertEqual (parse_cli_output (Path ('contract.sol' ), SOLC_0_4_0_CLI_OUTPUT ), expected_report )
577
+ self .assertEqual (parse_cli_output (Path ('contract.sol' ), SOLC_0_4_0_CLI_OUTPUT , 0 ), expected_report )
575
578
576
579
def test_parse_cli_output_should_handle_output_from_solc_0_4_8 (self ):
577
580
expected_report = FileReport (
@@ -588,7 +591,7 @@ def test_parse_cli_output_should_handle_output_from_solc_0_4_8(self):
588
591
]
589
592
)
590
593
591
- self .assertEqual (parse_cli_output (Path ('contract.sol' ), SOLC_0_4_8_CLI_OUTPUT ), expected_report )
594
+ self .assertEqual (parse_cli_output (Path ('contract.sol' ), SOLC_0_4_8_CLI_OUTPUT , 0 ), expected_report )
592
595
593
596
def test_parse_cli_output_should_handle_leading_and_trailing_spaces (self ):
594
597
compiler_output = (
@@ -606,7 +609,7 @@ def test_parse_cli_output_should_handle_leading_and_trailing_spaces(self):
606
609
]
607
610
)
608
611
609
- self .assertEqual (parse_cli_output (Path ('contract.sol' ), compiler_output ), expected_report )
612
+ self .assertEqual (parse_cli_output (Path ('contract.sol' ), compiler_output , 0 ), expected_report )
610
613
611
614
def test_parse_cli_output_should_handle_empty_bytecode_and_metadata_lines (self ):
612
615
compiler_output = dedent ("""\
@@ -640,7 +643,7 @@ def test_parse_cli_output_should_handle_empty_bytecode_and_metadata_lines(self):
640
643
]
641
644
)
642
645
643
- self .assertEqual (parse_cli_output (Path ('contract.sol' ), compiler_output ), expected_report )
646
+ self .assertEqual (parse_cli_output (Path ('contract.sol' ), compiler_output , 0 ), expected_report )
644
647
645
648
def test_parse_cli_output_should_handle_link_references_in_bytecode (self ):
646
649
compiler_output = dedent ("""\
@@ -662,4 +665,4 @@ def test_parse_cli_output_should_handle_link_references_in_bytecode(self):
662
665
)
663
666
# pragma pylint: enable=line-too-long
664
667
665
- self .assertEqual (parse_cli_output (Path ('contract.sol' ), compiler_output ), expected_report )
668
+ self .assertEqual (parse_cli_output (Path ('contract.sol' ), compiler_output , 0 ), expected_report )
0 commit comments