test: deprecated function
1 files changed, 19 insertions(+), 0 deletions(-) A ledgerReader_test.go
A ledgerReader_test.go => ledgerReader_test.go +19 -0
@@ 0,0 1,19 @@ package ledger import ( "testing" ) func TestReaderSimple(t *testing.T) { _, err := NewLedgerReader("testdata/ledgerRoot.dat") if err != nil { t.Fatal(err) } } func TestReaderNonExistant(t *testing.T) { _, err := NewLedgerReader("testdata/ledger-xxxxx.dat") if err.Error() != "open testdata/ledger-xxxxx.dat: no such file or directory" { t.Fatal(err) } }