(t *testing.T)
| 862 | } |
| 863 | |
| 864 | func 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 | |
| 878 | func TestGetBalancesByIDsLite_PartialResults(t *testing.T) { |
| 879 | db, mock, err := sqlmock.New() |
nothing calls this directly
no test coverage detected