test(xatu): reuse lint findings fixture

This commit is contained in:
2026-09-19 23:44:23 -04:00
parent d62aab7557
commit a42a9c7064
4 changed files with 6 additions and 7 deletions

View File

@@ -33,7 +33,6 @@ rust_test(
data = [
"testdata/clean.nix",
"testdata/invalid.nix",
"testdata/let_order.nix",
"testdata/lint_findings.nix",
],
deps = [

View File

@@ -1,4 +0,0 @@
let
support = "support";
primary = support;
in primary

View File

@@ -1,5 +1,9 @@
{
let
support = "support";
primary = support;
in {
package = package;
from = pkgs.from;
url = https://example.com;
ordered = primary;
}

View File

@@ -67,7 +67,7 @@ fn xatu_reports_unquoted_uri() -> googletest::Result<()> {
#[gtest]
fn xatu_reports_let_order() -> googletest::Result<()> {
let report = xatu::future_sight(vec![fixture_source("testdata/let_order.nix")?]).or_fail()?;
let report = xatu::future_sight(vec![fixture_source("testdata/lint_findings.nix")?]).or_fail()?;
let let_order_diagnostics = report
.diagnostics