From a72a025e9ed336505432b6d12eb1e9d97c59c2ab Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 31 May 2022 13:14:39 +0200 Subject: [PATCH] Remove leftover mock --- .../db2/history/mock_q_txsub_result.go | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 services/horizon/internal/db2/history/mock_q_txsub_result.go diff --git a/services/horizon/internal/db2/history/mock_q_txsub_result.go b/services/horizon/internal/db2/history/mock_q_txsub_result.go deleted file mode 100644 index 034292cbf9..0000000000 --- a/services/horizon/internal/db2/history/mock_q_txsub_result.go +++ /dev/null @@ -1,39 +0,0 @@ -package history - -import ( - "context" - "time" - - "github.com/stellar/go/ingest" - "github.com/stretchr/testify/mock" -) - -// MockQTxSubmissionResult is a mock implementation of the QTxSubmissionResult interface -type MockQTxSubmissionResult struct { - mock.Mock -} - -func (m *MockQTxSubmissionResult) GetTxSubmissionResult(ctx context.Context, hash string) (Transaction, error) { - a := m.Called(ctx, hash) - return a.Get(0).(Transaction), a.Error(1) -} - -func (m *MockQTxSubmissionResult) SetTxSubmissionResults(ctx context.Context, transactions []ingest.LedgerTransaction, sequence uint32, ledgerClosetime time.Time) (int64, error) { - a := m.Called(ctx, transactions, sequence) - return a.Get(0).(int64), a.Error(1) -} - -func (m *MockQTxSubmissionResult) InitEmptyTxSubmissionResult(ctx context.Context, hash string, innerHash string) error { - a := m.Called(ctx, hash, innerHash) - return a.Error(0) -} - -func (m *MockQTxSubmissionResult) DeleteTxSubmissionResultsOlderThan(ctx context.Context, howOldInSeconds uint64) (int64, error) { - a := m.Called(ctx, howOldInSeconds) - return a.Get(0).(int64), a.Error(1) -} - -func (m *MockQTxSubmissionResult) GetTxSubmissionResults(ctx context.Context, hashes []string) ([]Transaction, error) { - a := m.Called(ctx, hashes) - return a.Get(0).([]Transaction), a.Error(1) -}