Imported and modified evcli's api client code

This commit is contained in:
Julien Dessaux 2023-06-18 17:41:38 +02:00
parent 64ac1f44e0
commit 6844355a92
Signed by: adyxax
GPG key ID: F92E51B86E07177E
11 changed files with 523 additions and 5 deletions
external/evcli

23
external/evcli/url_test.go vendored Normal file
View 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())
}