backend_test.go 311 B

12345678910111213141516
  1. package backends
  2. import (
  3. "encoding/json"
  4. "fmt"
  5. "testing"
  6. )
  7. func TestSetProcessorValue(t *testing.T) {
  8. var test BackendConfig
  9. test = make(map[string]map[string]interface{}, 0)
  10. test.SetValue("processors", "ABC", "key", "value")
  11. out, _ := json.MarshalIndent(test, "", " ")
  12. fmt.Println(string(out))
  13. }