Add target parsing code for config (#9375)

This code is helper for mcs project
This commit is contained in:
Harshavardhana
2020-04-16 17:43:14 -07:00
committed by GitHub
parent 8bae956df6
commit d92db198d1
4 changed files with 155 additions and 30 deletions

View File

@@ -19,6 +19,8 @@ package config
import (
"testing"
"github.com/minio/minio/pkg/madmin"
)
func TestKVFields(t *testing.T) {
@@ -90,7 +92,7 @@ func TestKVFields(t *testing.T) {
for _, test := range tests {
test := test
t.Run("", func(t *testing.T) {
gotFields := kvFields(test.input, test.keys)
gotFields := madmin.KvFields(test.input, test.keys)
if len(gotFields) != len(test.expectedFields) {
t.Errorf("Expected keys %d, found %d", len(test.expectedFields), len(gotFields))
}