1
0
mirror of https://github.com/mayflower/docker-ls.git synced 2025-11-26 12:03:12 +03:00

Specify refspecs in docker-friendly repo:reference format.

This commit is contained in:
Christian Speckner
2016-02-17 17:27:59 +01:00
parent c174cc5b3d
commit c7b84fac6e
9 changed files with 128 additions and 24 deletions

View File

@@ -5,7 +5,7 @@ import (
"testing"
)
func TestParse(t *testing.T) {
func TestLinkHeaderParse(t *testing.T) {
testcase := `<http://example.com/v2/_catalog?n=20&last=b>; rel="next"`
url, err := parseLinkToNextHeader(testcase)
@@ -26,7 +26,7 @@ func TestParse(t *testing.T) {
}
}
func TestParseInvalid(t *testing.T) {
func TestLinkHeaderParseInvalid(t *testing.T) {
testcase := `<http://example.com/v2/_catalog?n=20&last=b; rel="next"`
_, err := parseLinkToNextHeader(testcase)