From 7d6ce3a2c8c9e804fb2558bb572c91803403d973 Mon Sep 17 00:00:00 2001 From: AntiD2ta Date: Thu, 7 Nov 2019 18:12:14 -0500 Subject: [PATCH] [test] refs #143 - Upgrade TestSkycoinAddressScanUnspentOutputs. Upgrade coverage of SkycoinAddress::ScanUnspentOutputs method. --- Makefile | 3 ++- src/coin/skycoin/models/account_test.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 54808569..36a3c07f 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,8 @@ UNAME_S = $(shell uname -s) DEFAULT_TARGET ?= desktop DEFAULT_ARCH ?= linux -COIN = skycoin ##In future use as a parameter tu make command. +##In future use as a parameter tu make command. +COIN = skycoin COVERAGEPATH = src/coin/$(COIN) COVERAGEFILE = $(COVERAGEPATH)/coverage.out COVERAGEHTML = $(COVERAGEPATH)/coverage.html diff --git a/src/coin/skycoin/models/account_test.go b/src/coin/skycoin/models/account_test.go index c9b49560..42ccfc83 100644 --- a/src/coin/skycoin/models/account_test.go +++ b/src/coin/skycoin/models/account_test.go @@ -94,9 +94,9 @@ func TestSkycoinAddressScanUnspentOutputs(t *testing.T) { Address: "addr1", } response := &readable.UnspentOutputsSummary{ - HeadOutputs: readable.UnspentOutputs{usOut, usOut}, - OutgoingOutputs: readable.UnspentOutputs{usOut, usOut}, + HeadOutputs: readable.UnspentOutputs{usOut, usOut}, } + global_mock.On("OutputsForAddresses", []string{"addr1"}).Return(response, nil) addr := &SkycoinAddress{address: "addr1"}