mirror of
https://github.com/mudler/cogito.git
synced 2026-07-23 10:25:44 -04:00
15 lines
306 B
Go
15 lines
306 B
Go
package cogito
|
|
|
|
import "testing"
|
|
|
|
func TestWithToolImageForwarding(t *testing.T) {
|
|
o := defaultOptions()
|
|
if o.toolImageForwarding {
|
|
t.Fatalf("expected default false")
|
|
}
|
|
WithToolImageForwarding(true)(o)
|
|
if !o.toolImageForwarding {
|
|
t.Fatalf("expected true after WithToolImageForwarding(true)")
|
|
}
|
|
}
|