(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestContextInjector_MultipleContexts(t *testing.T) { |
| 98 | config := InjectorConfig{ |
| 99 | EnableDateTime: true, |
| 100 | EnableSystemInfo: true, |
| 101 | CustomContext: "Custom context information", |
| 102 | } |
| 103 | |
| 104 | injector := NewContextInjector(config) |
| 105 | systemPrompt := "You are a helpful assistant." |
| 106 | |
| 107 | result := injector.InjectContext(context.Background(), systemPrompt) |
| 108 | |
| 109 | if !strings.Contains(result, "Current Date and Time") { |
| 110 | t.Error("expected date time context") |
| 111 | } |
| 112 | |
| 113 | if !strings.Contains(result, "System Information") { |
| 114 | t.Error("expected system info context") |
| 115 | } |
| 116 | |
| 117 | if !strings.Contains(result, "Custom context information") { |
| 118 | t.Error("expected custom context") |
| 119 | } |
| 120 | } |
nothing calls this directly
no test coverage detected