(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestBasic(t *testing.T) { |
| 22 | t.Parallel() |
| 23 | |
| 24 | actorID := uuid.NewString() |
| 25 | actor := &context.Actor{ |
| 26 | ID: actorID, |
| 27 | } |
| 28 | |
| 29 | // We can't peek inside since these opts require an internal type to apply onto. |
| 30 | // All we can do is check the length. |
| 31 | // See TestActorHeaders for an integration test. |
| 32 | oaiOpts := intercept.ActorHeadersAsOpenAIOpts(actor) |
| 33 | require.Len(t, oaiOpts, 1) |
| 34 | antOpts := intercept.ActorHeadersAsAnthropicOpts(actor) |
| 35 | require.Len(t, antOpts, 1) |
| 36 | } |
| 37 | |
| 38 | func TestBasicAndMetadata(t *testing.T) { |
| 39 | t.Parallel() |
nothing calls this directly
no test coverage detected