test(xatu): fully qualify googletest result
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use googletest::matchers::{contains, eq, is_true};
|
||||
use googletest::{OrFail, Result as TestResult, expect_that, gtest};
|
||||
use googletest::{OrFail, expect_that, gtest};
|
||||
use status::Code;
|
||||
use xatu::SourceFile;
|
||||
|
||||
@@ -24,7 +24,7 @@ fn fixture_path(path: &str) -> PathBuf {
|
||||
}
|
||||
|
||||
#[gtest]
|
||||
fn future_sight_reports_clean_sources_as_clean() -> TestResult<()> {
|
||||
fn future_sight_reports_clean_sources_as_clean() -> googletest::Result<()> {
|
||||
let report = xatu::future_sight(vec![fixture_source("testdata/clean.nix")]).or_fail()?;
|
||||
|
||||
expect_that!(report.is_clean(), is_true());
|
||||
@@ -32,7 +32,7 @@ fn future_sight_reports_clean_sources_as_clean() -> TestResult<()> {
|
||||
}
|
||||
|
||||
#[gtest]
|
||||
fn future_sight_rejects_parse_errors() -> TestResult<()> {
|
||||
fn future_sight_rejects_parse_errors() -> googletest::Result<()> {
|
||||
let error = xatu::future_sight(vec![fixture_source("testdata/invalid.nix")])
|
||||
.err()
|
||||
.or_fail()?;
|
||||
@@ -42,7 +42,7 @@ fn future_sight_rejects_parse_errors() -> TestResult<()> {
|
||||
}
|
||||
|
||||
#[gtest]
|
||||
fn future_sight_reports_deprecated_to_path_qualified_findings() -> TestResult<()> {
|
||||
fn future_sight_reports_deprecated_to_path_qualified_findings() -> googletest::Result<()> {
|
||||
let report = xatu::future_sight(vec![fixture_source("testdata/lint_findings.nix")]).or_fail()?;
|
||||
|
||||
let findings = report
|
||||
@@ -66,7 +66,7 @@ fn future_sight_reports_deprecated_to_path_qualified_findings() -> TestResult<()
|
||||
}
|
||||
|
||||
#[gtest]
|
||||
fn future_sight_reports_deprecated_to_path_unqualified_findings() -> TestResult<()> {
|
||||
fn future_sight_reports_deprecated_to_path_unqualified_findings() -> googletest::Result<()> {
|
||||
let report = xatu::future_sight(vec![fixture_source("testdata/lint_variants.nix")]).or_fail()?;
|
||||
|
||||
let findings = report
|
||||
@@ -90,7 +90,7 @@ fn future_sight_reports_deprecated_to_path_unqualified_findings() -> TestResult<
|
||||
}
|
||||
|
||||
#[gtest]
|
||||
fn future_sight_reports_empty_inherit_findings() -> TestResult<()> {
|
||||
fn future_sight_reports_empty_inherit_findings() -> googletest::Result<()> {
|
||||
let report = xatu::future_sight(vec![fixture_source("testdata/lint_findings.nix")]).or_fail()?;
|
||||
|
||||
let findings = report
|
||||
|
||||
Reference in New Issue
Block a user