You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
847 B
47 lines
847 B
package tron
|
|
|
|
import (
|
|
"github.com/fbsobreira/gotron-sdk/pkg/address"
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestEncode(t *testing.T) {
|
|
type args struct {
|
|
bytes []byte
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
want string
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if got := Encode(tt.args.bytes); got != tt.want {
|
|
t.Errorf("Encode() = %v, want %v", got, tt.want)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestWalletAddress(t *testing.T) {
|
|
type args struct {
|
|
addr string
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
want address.Address
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if got := WalletAddress(tt.args.addr); !reflect.DeepEqual(got, tt.want) {
|
|
t.Errorf("WalletAddress() = %v, want %v", got, tt.want)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|