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 (
"encoding/hex"
"reflect"
"testing"
"github.com/conformal/btcnet"
"github.com/conformal/btcscript"
"github.com/conformal/btcutil"
"reflect"
"testing"
)
// decodeHex decodes the passed hex string and returns the resulting bytes. It

View file

@ -9,12 +9,13 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"io/ioutil"
"strconv"
"strings"
"testing"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
)
// 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 (
"errors"
"github.com/conformal/btclog"
"io"
"github.com/conformal/btclog"
)
// log is a logger that is initialized with no output filters. This

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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