package main import ( "encoding/json" "errors" "os" "testing" ) // No test reaches the network or the mesh: Betterbird's list of published builds and the controller's // settings verb answer from here, and a test that needs them says what they answer. func TestMain(m *testing.M) { publishedBuilds = func() (string, error) { return "", errors.New("no network in tests") } asker = func(string, any) (json.RawMessage, error) { return nil, errors.New("no mesh in tests") } os.Exit(m.Run()) }