Imported and modified evcli's api client code
This commit is contained in:
parent
64ac1f44e0
commit
6844355a92
11 changed files with 523 additions and 5 deletions
external/evcli
23
external/evcli/url_test.go
vendored
Normal file
23
external/evcli/url_test.go
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
package evcli
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestNewURL(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
assert.Equal("/",
|
||||
NewURL().String())
|
||||
|
||||
assert.Equal("/a",
|
||||
NewURL("a").String())
|
||||
|
||||
assert.Equal("/a/bcd/ef",
|
||||
NewURL("a", "bcd", "ef").String())
|
||||
|
||||
assert.Equal("/a/b%20c/e%2Ff",
|
||||
NewURL("a", "b c", "e/f").String())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue