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

payment_service_test.go   A

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 12
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A afrikpay.TestPaymentService_Payment_EneoPrepaid 0 6 2
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