test_test.go 423 B

12345678910111213141516171819202122232425262728
  1. package cmd_test
  2. import (
  3. "testing"
  4. "github.com/porter-dev/porter/cli/cmd"
  5. )
  6. func TestMergeMapValues(t *testing.T) {
  7. map1 := map[string]interface{}{
  8. "hello": "there",
  9. "i": "have",
  10. }
  11. map2 := map[string]interface{}{
  12. "hello": "general",
  13. "the": "high",
  14. }
  15. map3 := map[string]interface{}{
  16. "hello": "kenobi",
  17. "ground": "!",
  18. }
  19. res := cmd.MergeMapValues(map1, map2, map3)
  20. t.Errorf("%v\n", res)
  21. }