backcard.TestBankNameMapList   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
package backcard
2
3
import (
4
	"fmt"
5
	"testing"
6
7
	"github.com/stretchr/testify/assert"
8
)
9
10
func TestBankNameMapList(t *testing.T) {
11
	resp := BankNameMapList()
12
	t.Log(resp)
13
}
14
15
func TestBankNameList(t *testing.T) {
16
	resp := BankNameList()
17
	t.Log(resp)
18
}
19
20
func TestBankInfo(t *testing.T) {
21
	var cards = []string{
22
		"6214850106608721", "6214850106608722",
23
	}
24
	for _, card := range cards {
25
		err, g := BankCardInfo(card)
26
		assert.Nil(t, err)
27
		t.Log(g)
28
		fmt.Printf("%+v", g)
29
	}
30
}
31