(t *testing.T, marker int)
| 589 | } |
| 590 | |
| 591 | func cacheTestObjectResolverServer(t *testing.T, marker int) *Server { |
| 592 | t.Helper() |
| 593 | srv := cacheTestServer(t) |
| 594 | Fields[cacheTestQuery]{ |
| 595 | NodeFunc("obj", func(ctx context.Context, _ ObjectResult[cacheTestQuery], _ struct{}) (Result[*cacheTestObject], error) { |
| 596 | return NewResultForCurrentCall(ctx, &cacheTestObject{Value: 0}) |
| 597 | }), |
| 598 | }.Install(srv) |
| 599 | Fields[*cacheTestObject]{ |
| 600 | Func("marker", func(_ context.Context, _ *cacheTestObject, _ struct{}) (Int, error) { |
| 601 | return NewInt(marker), nil |
| 602 | }).DoNotCache("test marker must execute against the current server class"), |
| 603 | }.Install(srv) |
| 604 | return srv |
| 605 | } |
| 606 | |
| 607 | func cacheTestObjectResult( |
| 608 | t *testing.T, |
no test coverage detected