Skip to content

Commit e8d8413

Browse files
committed
Signed-off-by: stringscut <stringscut@outlook.jp>
chore: execute goimports to format the code Signed-off-by: stringscut <stringscut@outlook.jp>
1 parent ae509aa commit e8d8413

25 files changed

+57
-37
lines changed

blockchain/ethereum_test_util.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package blockchain
33
import (
44
"crypto/ecdsa"
55
"fmt"
6+
"math/big"
7+
68
"github.com/ethereum/go-ethereum/core/types"
79
"github.com/ethereum/go-ethereum/ethclient/simulated"
8-
"math/big"
910

1011
"github.com/ethereum/go-ethereum/accounts/abi/bind"
1112
"github.com/ethereum/go-ethereum/common"

config/configuration_schema.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package config
22

33
import (
44
"encoding/json"
5-
"github.com/spf13/viper"
65
"strings"
6+
7+
"github.com/spf13/viper"
78
)
89

910
//TO DO, Work in Progress; this defines the complete Schema of the Daemon Configuration

config/configuration_schema_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package config
22

33
import (
4-
"github.com/stretchr/testify/assert"
54
"testing"
5+
6+
"github.com/stretchr/testify/assert"
67
)
78

89
func Test_getLeafNodeKey(t *testing.T) {

config/version_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package config
22

33
import (
4-
"github.com/stretchr/testify/assert"
54
"testing"
5+
6+
"github.com/stretchr/testify/assert"
67
)
78

89
func Test_getVersionTag(t *testing.T) {

escrow/allowed_user_payment_handler_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ package escrow
33
import (
44
"bytes"
55
"crypto/ecdsa"
6+
"math/big"
7+
"testing"
8+
69
"github.com/ethereum/go-ethereum/common"
710
"github.com/ethereum/go-ethereum/crypto"
811
"github.com/singnet/snet-daemon/v6/config"
912
"github.com/singnet/snet-daemon/v6/handler"
1013
"github.com/stretchr/testify/assert"
1114
"google.golang.org/grpc/metadata"
12-
"math/big"
13-
"testing"
1415
)
1516

1617
func TestAllowedUserPaymentHandler(t *testing.T) {

escrow/free_call_payment_handler_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ package escrow
33
import (
44
"crypto/ecdsa"
55
"fmt"
6-
"github.com/ethereum/go-ethereum/common"
7-
"github.com/singnet/snet-daemon/v6/blockchain"
8-
"github.com/singnet/snet-daemon/v6/storage"
9-
"github.com/singnet/snet-daemon/v6/utils"
106
"math/big"
117
"strconv"
128
"strings"
139
"testing"
1410

11+
"github.com/ethereum/go-ethereum/common"
1512
"github.com/ethereum/go-ethereum/crypto"
13+
"github.com/singnet/snet-daemon/v6/blockchain"
1614
"github.com/singnet/snet-daemon/v6/config"
1715
"github.com/singnet/snet-daemon/v6/handler"
16+
"github.com/singnet/snet-daemon/v6/storage"
17+
"github.com/singnet/snet-daemon/v6/utils"
1818
"github.com/stretchr/testify/assert"
1919
"github.com/stretchr/testify/suite"
2020
"google.golang.org/grpc/metadata"

escrow/free_call_storage.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package escrow
22

33
import (
4-
"github.com/singnet/snet-daemon/v6/storage"
54
"reflect"
5+
6+
"github.com/singnet/snet-daemon/v6/storage"
67
)
78

89
type FreeCallUserStorage struct {

escrow/free_call_storage_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package escrow
22

33
import (
4+
"testing"
5+
46
"github.com/singnet/snet-daemon/v6/storage"
57
"github.com/stretchr/testify/assert"
68
"github.com/stretchr/testify/suite"
7-
"testing"
89
)
910

1011
type FreeCallUserStorageSuite struct {

escrow/income_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package escrow
22

33
import (
44
"fmt"
5+
"math/big"
6+
"testing"
7+
58
"github.com/singnet/snet-daemon/v6/blockchain"
69
"github.com/singnet/snet-daemon/v6/handler"
710
"github.com/singnet/snet-daemon/v6/pricing"
811
"google.golang.org/grpc"
9-
"math/big"
10-
"testing"
1112

1213
"github.com/stretchr/testify/assert"
1314
)

escrow/payment_channel_storage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package escrow
22

33
import (
44
"errors"
5-
"github.com/singnet/snet-daemon/v6/storage"
65
"math/big"
76
"testing"
87

98
"github.com/ethereum/go-ethereum/common"
109
"github.com/ethereum/go-ethereum/crypto"
1110
"github.com/singnet/snet-daemon/v6/blockchain"
11+
"github.com/singnet/snet-daemon/v6/storage"
1212
"github.com/stretchr/testify/assert"
1313
"github.com/stretchr/testify/suite"
1414
)

0 commit comments

Comments
 (0)