google / google/compile-testing

generatesSources() exhibits confusing behavior for inexact path matches

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
P4
Dominant language
Java
Stars
722
Forks
129
Avg merge
11m
Merged PRs (30d)
4

Description

Assume that a `generatesSources()` clause is evaluated under the following conditions:
- All the generated sources are parseable
- All of the expected sources are parseable
- There is at least one mismatch between the URI of the expected source list and the compiled source list

If each one of the generated sources can be paired with an expected source having an equal compilation tree, then the clause succeeds

However, if at least one generated source cannot be paired with a syntactically equal expected source, then the clause will fail with the message `"Did not find a source file named ..."`

The error indicates that the failure was due to a mismatched path, when in fact the clause will succeed without changing any path at all.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.