mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-18 16:01:05 +00:00
11 lines
248 B
Go
11 lines
248 B
Go
package gogitlab
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestParameterEncoding(t *testing.T) {
|
|
assert.Equal(t, encodeParameter("namespace/project"), "namespace%2Fproject")
|
|
assert.Equal(t, encodeParameter("14"), "14")
|
|
}
|