MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / TestGetBalancesByIDsLite_EmptyInput

Function TestGetBalancesByIDsLite_EmptyInput

database/balance_test.go:864–876  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

862}
863
864func TestGetBalancesByIDsLite_EmptyInput(t *testing.T) {
865 db, _, err := sqlmock.New()
866 assert.NoError(t, err)
867 defer func() { _ = db.Close() }()
868
869 ds := Datasource{Conn: db}
870
871 ctx := context.Background()
872 balances, err := ds.GetBalancesByIDsLite(ctx, []string{})
873 assert.NoError(t, err)
874 assert.NotNil(t, balances)
875 assert.Len(t, balances, 0)
876}
877
878func TestGetBalancesByIDsLite_PartialResults(t *testing.T) {
879 db, mock, err := sqlmock.New()

Callers

nothing calls this directly

Calls 2

GetBalancesByIDsLiteMethod · 0.95
CloseMethod · 0.45

Tested by

no test coverage detected