test(xatu): reuse lint findings fixture
This commit is contained in:
1 parent
d62aab7557
commit
a42a9c7064
4 files changed
+6
-7
No files matched your search
@@ -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 = [
|
||||||
|
|||||||
Vendored
-4
@@ -1,4 +0,0 @@
|
|||||||
let
|
|
||||||
support = "support";
|
|
||||||
primary = support;
|
|
||||||
in primary
|
|
||||||
Vendored
+5
-1
@@ -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