carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package main
2
3import "testing"
4
5// SharedCarlosForTest hands the one shared carlos build (sharedCarlos,
6// auth_e2e_test.go) to the external test package, package main_test, which
7// cannot see unexported names. Two copies of the build would be two Onces
8// that disagree about whether it failed.
9func SharedCarlosForTest(t testing.TB) string {
10 t.Helper()
11 return sharedCarlos(t)
12}
13
14// SharedCarlosBuildsForTest is how many times this process has built it.
15func SharedCarlosBuildsForTest() int { return int(carlosBuilds.Load()) }
16