Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb460c91 authored by Paul Duffin's avatar Paul Duffin Committed by Gerrit Code Review
Browse files

Merge "Add FixtureIgnoreErrors"

parents 50eb3829 85034e92
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -506,6 +506,14 @@ var FixtureExpectsNoErrors = FixtureCustomErrorHandler(
	},
)

// FixtureIgnoreErrors ignores any errors.
//
// If this is used then it is the responsibility of the test to check the TestResult.Errs does not
// contain any unexpected errors.
var FixtureIgnoreErrors = FixtureCustomErrorHandler(func(t *testing.T, result *TestResult) {
	// Ignore the errors
})

// FixtureExpectsAtLeastOneMatchingError returns an error handler that will cause the test to fail
// if at least one error that matches the regular expression is not found.
//