package main import "testing" // SharedCarlosForTest hands the one shared carlos build (sharedCarlos, // auth_e2e_test.go) to the external test package, package main_test, which // cannot see unexported names. Two copies of the build would be two Onces // that disagree about whether it failed. func SharedCarlosForTest(t testing.TB) string { t.Helper() return sharedCarlos(t) } // SharedCarlosBuildsForTest is how many times this process has built it. func SharedCarlosBuildsForTest() int { return int(carlosBuilds.Load()) }