MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Add

Method Add

testutil/options_builder.go:43–49  ·  view source on GitHub ↗

Add adds a new option with the specified key and returns the OptionArgs for setting its arguments. If the option already exists, it returns the existing OptionArgs.

(key string)

Source from the content-addressed store, hash-verified

41// and returns the OptionArgs for setting its arguments.
42// If the option already exists, it returns the existing OptionArgs.
43func (o OptionsBuilder) Add(key string) *OptionArgs {
44 if _, exists := o[key]; !exists {
45 o[key] = &OptionArgs{}
46 }
47
48 return o[key]
49}
50
51// String returns the string representation of the options, joining them with '/'.
52func (o OptionsBuilder) String() string {

Callers 15

URLOptionsMethod · 0.95
URLOptionsMethod · 0.95
URLOptionsMethod · 0.95
URLOptionsMethod · 0.95
URLOptionsMethod · 0.95
URLOptionsMethod · 0.95
URLOptionsMethod · 0.95
URLOptionsMethod · 0.95
URLOptionsMethod · 0.95
ReportMethod · 0.80

Calls

no outgoing calls

Tested by 15

URLOptionsMethod · 0.76
URLOptionsMethod · 0.76
URLOptionsMethod · 0.76
URLOptionsMethod · 0.76
URLOptionsMethod · 0.76
URLOptionsMethod · 0.76
URLOptionsMethod · 0.76
URLOptionsMethod · 0.76
URLOptionsMethod · 0.76