diff options
author | Santiago M. Mola <santi@mola.io> | 2016-12-05 11:59:00 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-05 11:59:00 +0100 |
commit | 19f59e782b92d32cc430619c77053c764a3180f9 (patch) | |
tree | 4fc53ecba70661b2ecafea90d5f72440ad4b8b2b /plumbing/protocol/packp/advrefs_test.go | |
parent | 6996381ae43936e7365395e90c8f93372e49be9f (diff) | |
download | go-git-19f59e782b92d32cc430619c77053c764a3180f9.tar.gz |
protocol/packp: improve AdvRefs tests (#157)
* protocol/packp: fix Example* func names for AdvRefs.
* protocol/packp: test AdvRefs Encode/Decode, no internal functions.
Diffstat (limited to 'plumbing/protocol/packp/advrefs_test.go')
-rw-r--r-- | plumbing/protocol/packp/advrefs_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/protocol/packp/advrefs_test.go b/plumbing/protocol/packp/advrefs_test.go index 52ddc5c..0180fd3 100644 --- a/plumbing/protocol/packp/advrefs_test.go +++ b/plumbing/protocol/packp/advrefs_test.go @@ -302,7 +302,7 @@ func (s *AdvRefsDecodeEncodeSuite) TestAllSmartBug(c *C) { s.test(c, input, expected) } -func ExampleDecoder_Decode() { +func ExampleAdvRefs_Decode() { // Here is a raw advertised-ref message. raw := "" + "0065a6930aaee06755d1bdcfd943fbf614e4d92bb0c7 HEAD\x00multi_ack ofs-delta symref=HEAD:/refs/heads/master\n" + @@ -330,7 +330,7 @@ func ExampleDecoder_Decode() { // shallows = [5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c] } -func ExampleEncoder_Encode() { +func ExampleAdvRefs_Encode() { // Create an AdvRefs with the contents you want... ar := NewAdvRefs() |