From ddba8ff6a12f1fc806308676ab7f99a9e7ace33d Mon Sep 17 00:00:00 2001 From: bel Date: Mon, 13 Apr 2020 02:49:08 +0000 Subject: [PATCH] tdd set up --- storage/account_test.go | 11 +++++++++++ storage/balance_test.go | 11 +++++++++++ storage/storage_test.go | 13 +++++++++++++ storage/transaction_test.go | 7 +++++++ 4 files changed, 42 insertions(+) create mode 100644 storage/account_test.go create mode 100644 storage/balance_test.go create mode 100644 storage/storage_test.go create mode 100644 storage/transaction_test.go diff --git a/storage/account_test.go b/storage/account_test.go new file mode 100644 index 0000000..795bcb8 --- /dev/null +++ b/storage/account_test.go @@ -0,0 +1,11 @@ +package storage + +import "testing" + +func TestAccounts(t *testing.T) { + t.Fatal("not impl") +} + +func TestPrimaryAccounts(t *testing.T) { + t.Fatal("not impl") +} diff --git a/storage/balance_test.go b/storage/balance_test.go new file mode 100644 index 0000000..f3b081e --- /dev/null +++ b/storage/balance_test.go @@ -0,0 +1,11 @@ +package storage + +import "testing" + +func TestCurrentBalances(t *testing.T) { + t.Fatal("not impl") +} + +func TestBalancesOverTime(t *testing.T) { + t.Fatal("not impl") +} diff --git a/storage/storage_test.go b/storage/storage_test.go new file mode 100644 index 0000000..99ba93d --- /dev/null +++ b/storage/storage_test.go @@ -0,0 +1,13 @@ +package storage + +import "testing" + +func testStorage(t *testing.T) (*Storage, func()) { + m, can := testMongoNew(t) + return &Storage{m}, can +} + +func TestStorage(t *testing.T) { + _, can := testStorage(t) + can() +} diff --git a/storage/transaction_test.go b/storage/transaction_test.go new file mode 100644 index 0000000..5bd381c --- /dev/null +++ b/storage/transaction_test.go @@ -0,0 +1,7 @@ +package storage + +import "testing" + +func TestTransactions(t *testing.T) { + t.Fatal("not impl") +}