6c90064f91442feb55ced0f982676a1d1f99c6c5,src/python/pants/build_graph/address_test.py,,test_address_spec,#,234

Before Change


    assert top_level_addr.spec == "//:root" == str(top_level_addr) == top_level_addr.reference()
    assert top_level_addr.path_safe_spec == ".root"

    generated_addr = Address("a/b", relative_file_path="c.txt", target_name="c")
    assert generated_addr.spec == "a/b/c.txt:c" == str(generated_addr) == generated_addr.reference()
    assert generated_addr.path_safe_spec == "a.b.c.txt.c"

    top_level_generated_addr = Address("", relative_file_path="root.txt", target_name="root")

After Change


        expected="//root.txt:root",
        expected_path_spec=".root.txt.root",
    )
    assert_spec(
        Address("a/b", relative_file_path="subdir/c.txt", target_name="original"),
        expected="a/b/subdir/c.txt:../original",
        expected_path_spec="a.b.subdir.c.txt@original",
    )
    assert_spec(
        Address("a/b", relative_file_path="c.txt"),
        expected="a/b/c.txt",
        expected_path_spec="a.b.c.txt",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 6c90064f91442feb55ced0f982676a1d1f99c6c5
Time: 2020-08-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/build_graph/address_test.py
Class Name:
Method Name: test_address_spec


Project Name: pantsbuild/pants
Commit Name: 6c90064f91442feb55ced0f982676a1d1f99c6c5
Time: 2020-08-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/build_graph/address_test.py
Class Name:
Method Name: test_address_maybe_convert_to_base_target


Project Name: pantsbuild/pants
Commit Name: 8e2d975972a3188d0a017bdc607c7c25b0bf9ac7
Time: 2020-08-07
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/internals/build_files_test.py
Class Name: BuildFileIntegrationTest
Method Name: test_build_file_address


Project Name: pantsbuild/pants
Commit Name: 015a1e6ed5bfa9256c784d097277d2a54cadf511
Time: 2020-08-06
Author: stuhood@gmail.com
File Name: src/python/pants/engine/target_test.py
Class Name:
Method Name: test_generate_subtarget