package fio import ( "context" "time" ) // Fake is an in-memory replacement for Client, used in tests. type Fake struct { Transactions []Transaction Err error } func (f *Fake) FetchTransactions(_ context.Context, _, _ time.Time) ([]Transaction, error) { if f.Err != nil { return nil, f.Err } return f.Transactions, nil }