mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-06 16:16:26 +00:00
17 lines
326 B
Go
17 lines
326 B
Go
//go:build !release
|
|
|
|
package mockruntime
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
func startupEnabledFromEnv() bool {
|
|
return strings.EqualFold(strings.TrimSpace(os.Getenv("PULSE_MOCK_MODE")), "true")
|
|
}
|
|
|
|
// ValidateEnablement always permits mock fixtures in non-release builds.
|
|
func ValidateEnablement(enable bool) error {
|
|
return nil
|
|
}
|