Rewrite simple test (only grpc output)

This commit is contained in:
Mathieu Acthernoene
2016-12-20 11:31:46 +01:00
parent 304fba375b
commit 536162a58b
54 changed files with 3359 additions and 2396 deletions

33
vendor/github.com/huandu/xstrings/util_test.go generated vendored Normal file
View File

@@ -0,0 +1,33 @@
// Copyright 2015 Huan Du. All rights reserved.
// Licensed under the MIT license that can be found in the LICENSE file.
package xstrings
import (
"strings"
"testing"
)
type _M map[string]string
const (
separator = " ¶ "
)
func runTestCases(t *testing.T, converter func(string) string, cases map[string]string) {
for k, v := range cases {
s := converter(k)
if s != v {
t.Fatalf("case fails. [case:%v]\nshould => %#v\nactual => %#v", k, v, s)
}
}
}
func sep(strs ...string) string {
return strings.Join(strs, separator)
}
func split(str string) []string {
return strings.Split(str, separator)
}