goimports -w .

This commit is contained in:
Dave Collins 2014-07-02 19:37:49 -05:00
parent 79b6e51dff
commit 5beafbd2d8
9 changed files with 24 additions and 16 deletions

View file

@ -5,11 +5,12 @@ package btcscript_test
import ( import (
"encoding/hex" "encoding/hex"
"reflect"
"testing"
"github.com/conformal/btcnet" "github.com/conformal/btcnet"
"github.com/conformal/btcscript" "github.com/conformal/btcscript"
"github.com/conformal/btcutil" "github.com/conformal/btcutil"
"reflect"
"testing"
) )
// decodeHex decodes the passed hex string and returns the resulting bytes. It // decodeHex decodes the passed hex string and returns the resulting bytes. It

View file

@ -9,12 +9,13 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"io/ioutil" "io/ioutil"
"strconv" "strconv"
"strings" "strings"
"testing" "testing"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
) )
// this file is present to export some internal interfaces so that we can // this file is present to export some internal interfaces so that we can

3
log.go
View file

@ -6,8 +6,9 @@ package btcscript
import ( import (
"errors" "errors"
"github.com/conformal/btclog"
"io" "io"
"github.com/conformal/btclog"
) )
// log is a logger that is initialized with no output filters. This // log is a logger that is initialized with no output filters. This

View file

@ -6,17 +6,18 @@ package btcscript
import ( import (
"bytes" "bytes"
"code.google.com/p/go.crypto/ripemd160"
"crypto/ecdsa" "crypto/ecdsa"
"crypto/sha1" "crypto/sha1"
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"hash"
"math/big"
"code.google.com/p/go.crypto/ripemd160"
"github.com/conformal/btcec" "github.com/conformal/btcec"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"github.com/conformal/fastsha256" "github.com/conformal/fastsha256"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"hash"
"math/big"
) )
// An opcode defines the information related to a btcscript opcode. // An opcode defines the information related to a btcscript opcode.

View file

@ -6,10 +6,11 @@ package btcscript_test
import ( import (
"bytes" "bytes"
"testing"
"github.com/conformal/btcscript" "github.com/conformal/btcscript"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"testing"
) )
// test scripts to test as many opcodes as possible. // test scripts to test as many opcodes as possible.

View file

@ -11,13 +11,14 @@ import (
"encoding/binary" "encoding/binary"
"errors" "errors"
"fmt" "fmt"
"io"
"time"
"github.com/conformal/btcec" "github.com/conformal/btcec"
"github.com/conformal/btcnet" "github.com/conformal/btcnet"
"github.com/conformal/btcutil" "github.com/conformal/btcutil"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"io"
"time"
) )
var ( var (

View file

@ -10,13 +10,14 @@ import (
"crypto/rand" "crypto/rand"
"errors" "errors"
"fmt" "fmt"
"math/big"
"testing"
"github.com/conformal/btcec" "github.com/conformal/btcec"
"github.com/conformal/btcnet" "github.com/conformal/btcnet"
"github.com/conformal/btcscript" "github.com/conformal/btcscript"
"github.com/conformal/btcutil" "github.com/conformal/btcutil"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"math/big"
"testing"
) )
func TestPushedData(t *testing.T) { func TestPushedData(t *testing.T) {
@ -2935,7 +2936,6 @@ func (b *bogusAddress) String() string {
return "" return ""
} }
func TestPayToAddrScript(t *testing.T) { func TestPayToAddrScript(t *testing.T) {
// 1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX // 1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX
p2pkhMain, err := btcutil.NewAddressPubKeyHash([]byte{ p2pkhMain, err := btcutil.NewAddressPubKeyHash([]byte{

View file

@ -6,8 +6,9 @@ package btcscript_test
import ( import (
"bytes" "bytes"
"github.com/conformal/btcscript"
"testing" "testing"
"github.com/conformal/btcscript"
) )
// TestScriptBuilderAddOp tests that pushing opcodes to a script via the // TestScriptBuilderAddOp tests that pushing opcodes to a script via the

View file

@ -8,9 +8,10 @@ import (
"bytes" "bytes"
"errors" "errors"
"fmt" "fmt"
"github.com/conformal/btcscript"
"math/big" "math/big"
"testing" "testing"
"github.com/conformal/btcscript"
) )
type stackTest struct { type stackTest struct {