MCPcopy
hub / github.com/spf13/pflag / setUpF32SFlagSetWithDefault

Function setUpF32SFlagSetWithDefault

float32_slice_test.go:20–24  ·  view source on GitHub ↗
(f32sp *[]float32)

Source from the content-addressed store, hash-verified

18}
19
20func setUpF32SFlagSetWithDefault(f32sp *[]float32) *FlagSet {
21 f := NewFlagSet("test", ContinueOnError)
22 f.Float32SliceVar(f32sp, "f32s", []float32{0.0, 1.0}, "Command separated list!")
23 return f
24}
25
26func TestEmptyF32S(t *testing.T) {
27 var f32s []float32

Callers 2

TestF32SDefaultFunction · 0.85
TestF32SWithDefaultFunction · 0.85

Calls 2

Float32SliceVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected