mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-07 00:37:36 +00:00
13 lines
278 B
Go
13 lines
278 B
Go
//go:build !release
|
|
|
|
package mock
|
|
|
|
import "os"
|
|
|
|
// mockModeFromEnv reads PULSE_MOCK_MODE from the environment.
|
|
// Only available in non-release builds.
|
|
func mockModeFromEnv() bool {
|
|
return os.Getenv("PULSE_MOCK_MODE") == "true"
|
|
}
|
|
|
|
func shouldSyncEnvFlag() bool { return true }
|