goimports -w .

This commit is contained in:
Dave Collins 2014-07-02 19:43:33 -05:00
parent 5032b07c66
commit 3a1009529f
31 changed files with 85 additions and 54 deletions

View file

@ -6,9 +6,10 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"io/ioutil"
"testing"
"github.com/conformal/btcwire"
)
// genesisCoinbaseTx is the coinbase transaction for the genesis blocks for

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"reflect"
"testing"
"time"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestBlockHeader tests the BlockHeader API.

View file

@ -8,9 +8,10 @@ import (
"crypto/rand"
"encoding/binary"
"fmt"
"github.com/conformal/fastsha256"
"io"
"math"
"github.com/conformal/fastsha256"
)
// Maximum payload size for a variable length integer.

View file

@ -7,12 +7,13 @@ package btcwire_test
import (
"bytes"
"fmt"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"strings"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// mainNetGenesisHash is the hash of the first block in the block chain for the

View file

@ -5,8 +5,9 @@
package btcwire_test
import (
"github.com/conformal/btcwire"
"io"
"github.com/conformal/btcwire"
)
// fakeMessage implements the btcwire.Message interface and is used to force

View file

@ -6,10 +6,11 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestInvVectStringer tests the stringized output for inventory vector types.

View file

@ -7,13 +7,14 @@ package btcwire_test
import (
"bytes"
"encoding/binary"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"net"
"reflect"
"testing"
"time"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// makeHeader is a convenience function to make a message header in the form of

View file

@ -6,13 +6,14 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"net"
"reflect"
"testing"
"time"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestAddr tests the MsgAddr API.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestMsgAlert tests the MsgAlert API.

View file

@ -6,12 +6,13 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"time"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestBlock tests the MsgBlock API.

View file

@ -6,10 +6,11 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
)
// TestFilterAddLatest tests the MsgFilterAdd API against the latest protocol

View file

@ -6,10 +6,11 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestFilterCLearLatest tests the MsgFilterClear API against the latest

View file

@ -6,10 +6,11 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
)
// TestFilterCLearLatest tests the MsgFilterLoad API against the latest protocol

View file

@ -6,10 +6,11 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestGetAddr tests the MsgGetAddr API.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestGetBlocks tests the MsgGetBlocks API.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestGetData tests the MsgGetData API.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestGetHeaders tests the MsgGetHeader API.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestHeaders tests the MsgHeaders API.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestInv tests the MsgInv API.

View file

@ -6,8 +6,9 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"testing"
"github.com/conformal/btcwire"
)
func TestMemPool(t *testing.T) {

View file

@ -7,12 +7,13 @@ package btcwire_test
import (
"bytes"
"crypto/rand"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"time"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestMerkleBlock tests the MsgMerkleBlock API.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestNotFound tests the MsgNotFound API.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestPing tests the MsgPing API against the latest protocol version.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestPongLatest tests the MsgPong API against the latest protocol version.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestRejectCodeStringer tests the stringized output for the reject code type.

View file

@ -6,11 +6,12 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestTx tests the MsgTx API.

View file

@ -6,10 +6,11 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"reflect"
"testing"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestVerAck tests the MsgVerAck API.

View file

@ -6,14 +6,15 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"net"
"reflect"
"strings"
"testing"
"time"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestVersion tests the MsgVersion API.

View file

@ -6,13 +6,14 @@ package btcwire_test
import (
"bytes"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io"
"net"
"reflect"
"testing"
"time"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
)
// TestNetAddress tests the NetAddress API.

View file

@ -5,8 +5,9 @@
package btcwire_test
import (
"github.com/conformal/btcwire"
"testing"
"github.com/conformal/btcwire"
)
// TestServiceFlagStringer tests the stringized output for service flag types.

View file

@ -7,8 +7,9 @@ package btcwire_test
import (
"bytes"
"encoding/hex"
"github.com/conformal/btcwire"
"testing"
"github.com/conformal/btcwire"
)
// TestShaHash tests the ShaHash API.