MCPcopy Create free account
hub / github.com/google/pprof / StringList

Method StringList

internal/driver/driver_test.go:342–352  ·  view source on GitHub ↗
(s, d, c string)

Source from the content-addressed store, hash-verified

340}
341
342func (f testFlags) StringList(s, d, c string) *[]*string {
343 if t, ok := f.stringLists[s]; ok {
344 // convert slice of strings to slice of string pointers before returning.
345 tp := make([]*string, len(t))
346 for i, v := range t {
347 tp[i] = &v
348 }
349 return &tp
350 }
351 return &[]*string{}
352}
353
354func (f testFlags) Parse(func()) []string {
355 return f.args

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected