We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d62f7 commit 18cf19bCopy full SHA for 18cf19b
crates/linking/src/lib.rs
@@ -742,6 +742,18 @@ mod tests {
742
});
743
assert!(artifact_exists, "Expected UsesBoth artifact to be compiled");
744
745
+ // Seed empty expectations for all artifacts in this folder to avoid unexpected-ids.
746
+ let mut linker = linker.output.artifact_ids().fold(linker, |acc, (id, _)| {
747
+ let source = id
748
+ .source
749
+ .strip_prefix(acc.project.root())
750
+ .unwrap_or(&id.source)
751
+ .to_string_lossy()
752
+ .into_owned();
753
+ let identifier = format!("{source}:{}", id.name);
754
+ acc.assert_dependencies(identifier, vec![])
755
+ });
756
+
757
linker
758
.assert_dependencies(
759
"default/linking/samefile_union/SameFileUnion.t.sol:UsesBoth".to_string(),
0 commit comments