(fn func(string) (string, bool))
| 33 | } |
| 34 | |
| 35 | func stubLookupEnv(fn func(string) (string, bool)) func() { |
| 36 | orig := lookupEnvFunc |
| 37 | lookupEnvFunc = fn |
| 38 | return func() { lookupEnvFunc = orig } |
| 39 | } |
| 40 | |
| 41 | func TestGetOrCreateDeviceID(t *testing.T) { |
| 42 | t.Run("creates new ID on first call", func(t *testing.T) { |
no outgoing calls
no test coverage detected