1546b3abe27b379a82be916a56a98c6c9fda5740,src/python/pants/backend/python/rules/coverage_test.py,TestCoverageConfig,run_create_coverage_config_rule,#TestCoverageConfig#Any#,16

Before Change


                [FileContent(path="/dev/null/prelude", content=coverage_config.encode())]
            )

        mock_gets = [
            MockGet(
                product_type=Snapshot,
                subject_type=PathGlobs,
                mock=lambda _: Snapshot(Digest("bosco", 30), ("/dev/null/someconfig",), ()),
            ),
            MockGet(product_type=DigestContents, subject_type=Digest, mock=fake_read_config,),
            MockGet(product_type=Digest, subject_type=CreateDigest, mock=fake_handle_config),
        ]

        result = run_rule(create_coverage_config, rule_args=[coverage], mock_gets=mock_gets)
        assert result.digest.fingerprint == "jerry"
        assert len(resolved_config) == 1

After Change


                [FileContent(path="/dev/null/prelude", content=coverage_config.encode())]
            )

        mock_gets = [
            MockGet(product_type=DigestContents, subject_type=PathGlobs, mock=mock_read_config),
            MockGet(product_type=Digest, subject_type=CreateDigest, mock=mock_handle_config),
        ]

        result = run_rule(create_coverage_config, rule_args=[coverage], mock_gets=mock_gets)
        assert result.digest.fingerprint == "jerry"
        assert len(resolved_config) == 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 1546b3abe27b379a82be916a56a98c6c9fda5740
Time: 2020-07-27
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/coverage_test.py
Class Name: TestCoverageConfig
Method Name: run_create_coverage_config_rule


Project Name: pantsbuild/pants
Commit Name: 91fd37320688ecfd4a59db72f78cb5b1d7cd8e1c
Time: 2021-04-06
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/goals/coverage_py_test.py
Class Name:
Method Name: run_create_coverage_config_rule


Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/rules/core/lint_test.py
Class Name: LintTest
Method Name: run_lint_rule