def METHOD_NAME(rule_runner: RuleRunner) -> None:
    input_digest = rule_runner.make_snapshot(
        {
            "foo_test.go": dedent(
                """
                package foo
                func TestThisIsATest(t *testing.T) {
                }
                func Test(t *testing.T) {
                }
                """
            ),
            "bar_test.go": dedent(
                """
                package foo_test
                func BenchmarkThisIsABenchmark(b *testing.B) {
                }
                func Benchmark(b *testing.B) {
                }
                """
            ),
        },
    ).digest
    metadata = rule_runner.request(
        GeneratedTestMain,
        [
            GenerateTestMainRequest(
                digest=input_digest,
                test_paths=FrozenOrderedSet(["foo_test.go"]),
                xtest_paths=FrozenOrderedSet(["bar_test.go"]),
                import_path="foo",
                register_cover=False,
                address=Address("foo"),
            )
        ],
    )
    assert metadata.digest != EMPTY_DIGEST
    assert metadata.has_tests
    assert metadata.has_xtests