test(xatu): reuse lint findings fixture
This commit is contained in:
@@ -33,7 +33,6 @@ rust_test(
|
|||||||
data = [
|
data = [
|
||||||
"testdata/clean.nix",
|
"testdata/clean.nix",
|
||||||
"testdata/invalid.nix",
|
"testdata/invalid.nix",
|
||||||
"testdata/let_order.nix",
|
|
||||||
"testdata/lint_findings.nix",
|
"testdata/lint_findings.nix",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
|
|||||||
4
src/xatu/testdata/let_order.nix
vendored
4
src/xatu/testdata/let_order.nix
vendored
@@ -1,4 +0,0 @@
|
|||||||
let
|
|
||||||
support = "support";
|
|
||||||
primary = support;
|
|
||||||
in primary
|
|
||||||
6
src/xatu/testdata/lint_findings.nix
vendored
6
src/xatu/testdata/lint_findings.nix
vendored
@@ -1,5 +1,9 @@
|
|||||||
{
|
let
|
||||||
|
support = "support";
|
||||||
|
primary = support;
|
||||||
|
in {
|
||||||
package = package;
|
package = package;
|
||||||
from = pkgs.from;
|
from = pkgs.from;
|
||||||
url = https://example.com;
|
url = https://example.com;
|
||||||
|
ordered = primary;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ fn xatu_reports_unquoted_uri() -> googletest::Result<()> {
|
|||||||
|
|
||||||
#[gtest]
|
#[gtest]
|
||||||
fn xatu_reports_let_order() -> googletest::Result<()> {
|
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
|
let let_order_diagnostics = report
|
||||||
.diagnostics
|
.diagnostics
|
||||||
|
|||||||
Reference in New Issue
Block a user