// GetActivities simply returns an iterator that contains the mock activities.
GetActivities simply returns an iterator that contains the mock activities.
// GetActivities simply returns an iterator that contains the mock activities .
func (m *ActivityPubClient) GetActivities(iri *url.URL, _ client.Order) (client.ActivityIterator, error) {
	if m.err != nil {
		return nil, m.err
	}
	const pageSize = 3
	it := &ActivityIterator{}
	for i, a := range m.activities {
		it.NextReturnsOnCall(i, a, nil)
		it.CurrentPageReturnsOnCall(i, testutil.NewMockID(iri, fmt.Sprintf("&page-num=%d", i%pageSize)))
	}
	it.NextReturnsOnCall(len(m.activities), nil, client.ErrNotFound)
	return it, nil
}
func ( m * ActivityPubClient ) GetActivities ( iri * url . URL , _ client . Order ) ( client . ActivityIterator , error ) { if m . err != nil { return nil , m . err } const pageSize = 3 it := & ActivityIterator { } for i , a := range m . activities { it . NextReturnsOnCall ( i , a , nil ) it . CurrentPageReturnsOnCall ( i , testutil . NewMockID ( iri , fmt . Sprintf ( " " , i % pageSize ) ) ) } it . NextReturnsOnCall ( len ( m . activities ) , nil , client . ErrNotFound ) return it , nil }
GetActivities simply returns an iterator that contains the mock activities.
GetActivities simply returns an iterator that contains the mock activities .