MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / TestSetting_IsValid

Function TestSetting_IsValid

internal/plugins/plugin_test.go:91–102  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

89}
90
91func TestSetting_IsValid(t *testing.T) {
92 setting := &Setting{
93 EnvVariable: "TEST_SETTING",
94 Value: "some_value",
95 Required: true,
96 }
97
98 assert.True(t, setting.IsValid())
99
100 setting.Value = ""
101 assert.False(t, setting.IsValid())
102}
103
104func TestSetting_Configure(t *testing.T) {
105 _ = os.Setenv("TEST_SETTING", "test_value")

Callers

nothing calls this directly

Calls 1

IsValidMethod · 0.95

Tested by

no test coverage detected