MCPcopy
hub / github.com/kopia/kopia / String

Method String

tests/tools/fio/job.go:16–29  ·  view source on GitHub ↗

String implements the stringer interface, formats the Job as it would appear in a well-formed fio config file.

()

Source from the content-addressed store, hash-verified

14// String implements the stringer interface, formats the Job
15// as it would appear in a well-formed fio config file.
16func (job Job) String() string {
17 ret := []string{fmt.Sprintf("[%s]", job.Name)}
18
19 for k, v := range job.Options {
20 if v == "" {
21 ret = append(ret, k)
22 continue
23 }
24
25 ret = append(ret, fmt.Sprintf("%s=%s", k, v))
26 }
27
28 return strings.Join(ret, "\n")
29}

Callers 15

gettool.goFile · 0.45
cli2md.goFile · 0.45
generateSubcommandPageFunction · 0.45
SnapshotRestoreMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45
TestDefaultGlobalPolicyFunction · 0.45
testPermissionsFunction · 0.45
parseSnapshotResultJSONFunction · 0.45

Calls

no outgoing calls

Tested by 6

TestDefaultGlobalPolicyFunction · 0.36
testPermissionsFunction · 0.36
parseSnapshotResultJSONFunction · 0.36