MCPcopy
hub / github.com/spf13/viper / TestBindPFlagDetectNilFlag

Function TestBindPFlagDetectNilFlag

viper_test.go:1316–1320  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1314}
1315
1316func TestBindPFlagDetectNilFlag(t *testing.T) {
1317 v := New()
1318 result := v.BindPFlag("testvalue", nil)
1319 assert.Error(t, result)
1320}
1321
1322func TestBindPFlagStringToString(t *testing.T) {
1323 tests := []struct {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
BindPFlagMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected