package membership import ( "context" "errors" "testing" ) func TestStubLoaderReturnsErrIOPending(t *testing.T) { t.Parallel() s := NewStubSources() _, _, err := s.LoadAdults(context.Background()) if !errors.Is(err, ErrIOPending) { t.Errorf("LoadAdults: want ErrIOPending, got %v", err) } _, err = s.LoadTransactions(context.Background()) if !errors.Is(err, ErrIOPending) { t.Errorf("LoadTransactions: want ErrIOPending, got %v", err) } _, err = s.LoadExceptions(context.Background()) if !errors.Is(err, ErrIOPending) { t.Errorf("LoadExceptions: want ErrIOPending, got %v", err) } }