INNER CODE UNIT · Go
TestEnableTracingConfiguration
rameshsunkara/go-rest-api-example · internal/config/config_test.go:93
func TestEnableTracingConfiguration(t *testing.T) {
tests := []struct {
name string
envValue string
expectedValue bool
}{
{
name: "enableTracing set to true",
envValue: "true",
expectedValue: true,
},
{
name: "enableTracing set to false",
envValue: "false",
expectedValue: false,
},
{
name: "enableTracing not set (defaults to false)",