← All recipes
Moderne licensed

Audit test fatal

Recipe IDorg.openrewrite.golang.codequality.AuditTestFatalArtifactgithub.com/moderneinc/recipes-go

Find t.Fatal() and t.Fatalf() calls. These abort the test immediately and panic when called from a goroutine other than the test function's goroutine.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.golang.codequality.AuditTestFatal

If the recipe isn’t available locally, install it with:

mod config recipes go install github.com/moderneinc/recipes-go