Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package generator
import "testing"
func TestUnderscore(t *testing.T) {
type args struct {
s string
}
tests := []struct {
name string
args args
want string
}{
{
name: "remoteIP",
args: args{s: "remoteIP"},
want: "remote_ip",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := underscore(tt.args.s); got != tt.want {
t.Errorf("underscore() = %v, want %v", got, tt.want)
}
})
}
}