Passed
Push — main ( 92d48d...c1a595 )
by Acho
11:13
created

afrikpay.TestPaymentService_Payment_EneoPrepaid   A

Complexity

Conditions 2

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
package afrikpay
2
3
import (
4
	"encoding/json"
5
	"log"
6
	"testing"
7
8
	"github.com/NdoleStudio/afrikpay-go/internal/stubs"
9
	"github.com/davecgh/go-spew/spew"
10
)
11
12
func TestPaymentService_Payment_EneoPrepaid(t *testing.T) {
13
	result := new(ENEOPrepaidPaymentResponse)
14
	if err := json.Unmarshal(stubs.ENEOPrepaidResponse(), result); err != nil {
15
		log.Fatal(err)
16
	}
17
	spew.Dump(result.Result)
18
}
19