func (e *e2e) GetUpdateOperations(ctx context.Context) func(*testing.T) {
	if err := ctx.Err(); err != nil {
		return func(t *testing.T) { t.Skip(err) }
	}
	return func(t *testing.T) {
		defer e.failed(t)
		out, err := e.s.GetUpdateOperations(ctx, e.updater)
		if err != nil {
			t.Fatalf("failed to get UpdateOperations: %v", err)
		}
		nOps := opLimit
		if e.Updates < nOps {
			nOps = e.Updates
		}
		// confirm number of update operations
		if got, want := len(out[e.updater]), nOps; got != want {
			t.Fatalf("wrong number of update operations: got: %d, want: %d", got, want)
		}
		// confirm retrieved update operations match
		// test generated values
		for i := 0; i < nOps; i++ {
			ri := e.Updates - i - 1
			want, got := e.updateOps[ri], out[e.updater][i]
			if !cmp.Equal(want, got, updateOpCmp) {
				t.Fatal(cmp.Diff(want, got, updateOpCmp))
			}
		}
		t.Log("ok")
	}
}
// GetUpdateOperations confirms retrieving an update
// operation returns the expected results.
GetUpdateOperations confirms retrieving an update
operation returns the expected results.
// GetUpdateOperations confirms retrieving an update // operation returns the expected results .
func (e *e2e) GetUpdateOperations(ctx context.Context) func(*testing.T) {
	if err := ctx.Err(); err != nil {
		return func(t *testing.T) { t.Skip(err) }
	}
	return func(t *testing.T) {
		defer e.failed(t)
		out, err := e.s.GetUpdateOperations(ctx, e.updater)
		if err != nil {
			t.Fatalf("failed to get UpdateOperations: %v", err)
		}
		nOps := opLimit
		if e.Updates < nOps {
			nOps = e.Updates
		}
		if got, want := len(out[e.updater]), nOps; got != want {
			t.Fatalf("wrong number of update operations: got: %d, want: %d", got, want)
		}
		for i := 0; i < nOps; i++ {
			ri := e.Updates - i - 1
			want, got := e.updateOps[ri], out[e.updater][i]
			if !cmp.Equal(want, got, updateOpCmp) {
				t.Fatal(cmp.Diff(want, got, updateOpCmp))
			}
		}
		t.Log("ok")
	}
}
func ( e * e2e ) GetUpdateOperations ( ctx context . Context ) func ( * testing . T ) { if err := ctx . Err ( ) ; err != nil { return func ( t * testing . T ) { t . Skip ( err ) } } return func ( t * testing . T ) { defer e . failed ( t ) out , err := e . s . GetUpdateOperations ( ctx , e . updater ) if err != nil { t . Fatalf ( " " , err ) } nOps := opLimit if e . Updates < nOps { nOps = e . Updates } if got , want := len ( out [ e . updater ] ) , nOps ; got != want { t . Fatalf ( " " , got , want ) } for i := 0 ; i < nOps ; i ++ { ri := e . Updates - i - 1 want , got := e . updateOps [ ri ] , out [ e . updater ] [ i ] if ! cmp . Equal ( want , got , updateOpCmp ) { t . Fatal ( cmp . Diff ( want , got , updateOpCmp ) ) } } t . Log ( " " ) } }
GetUpdateOperations confirms retrieving an update
operation returns the expected results.
GetUpdateOperations confirms retrieving an update operation returns the expected results .
// confirm number of update operations // confirm retrieved update operations match // test generated values