Set sets a config key.
(ns, key string, val any)
| 557 | |
| 558 | // Set sets a config key. |
| 559 | func (c *TestConfig) Set(ns, key string, val any) { |
| 560 | nskey := nskey(ns, key) |
| 561 | c.v.Set(nskey, val) |
| 562 | c.IsSetMap[key] = true |
| 563 | } |
| 564 | |
| 565 | // IsSet returns true if the given key is set on the config. |
| 566 | func (c *TestConfig) IsSet(key string) bool { |