aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/protocol/packp/capability/list_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/protocol/packp/capability/list_test.go')
-rw-r--r--plumbing/protocol/packp/capability/list_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/plumbing/protocol/packp/capability/list_test.go b/plumbing/protocol/packp/capability/list_test.go
index 6d350b0..eeb3173 100644
--- a/plumbing/protocol/packp/capability/list_test.go
+++ b/plumbing/protocol/packp/capability/list_test.go
@@ -27,6 +27,13 @@ func (s *SuiteCapabilities) TestDecode(c *check.C) {
c.Assert(cap.Get(ThinPack), check.IsNil)
}
+func (s *SuiteCapabilities) TestDecodeEmpty(c *check.C) {
+ cap := NewList()
+ err := cap.Decode(nil)
+ c.Assert(err, check.IsNil)
+ c.Assert(cap, check.DeepEquals, NewList())
+}
+
func (s *SuiteCapabilities) TestDecodeWithErrArguments(c *check.C) {
cap := NewList()
err := cap.Decode([]byte("thin-pack=foo"))