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

Function testOptions

options/options_test.go:195–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193}
194
195func testOptions() *options.Options {
196 o := options.New()
197 o.Set("string_key", "string_value")
198 o.Set("int_key", 42)
199 o.Set("float_key", 3.14)
200 o.Set("bool_key", true)
201 o.Set("group1.key1", "value1")
202 o.Set("group1.key2", 100)
203 o.Set("group2.key1", false)
204 o.Set("group2.key2", 2.71)
205 o.Set("group2.subgroup.key", "subvalue")
206 o.Set("group2.subgroup.num", 256)
207 return o
208}
209
210func testNestedOptions() *options.Options {
211 o := testOptions()

Callers 3

testNestedOptionsFunction · 0.85
TestMapMethod · 0.85
TestNestedMapMethod · 0.85

Calls 2

NewFunction · 0.92
SetMethod · 0.45

Tested by

no test coverage detected