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

Function TestSetting_Configure

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

Source from the content-addressed store, hash-verified

102}
103
104func TestSetting_Configure(t *testing.T) {
105 _ = os.Setenv("TEST_SETTING", "test_value")
106 setting := &Setting{
107 EnvVariable: "TEST_SETTING",
108 Required: true,
109 }
110 err := setting.Configure()
111 assert.NoError(t, err)
112 assert.Equal(t, "test_value", setting.Value)
113}
114
115func TestSetting_FillEnvFileContent(t *testing.T) {
116 buffer := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 1

ConfigureMethod · 0.95

Tested by

no test coverage detected