mirror of https://github.com/danielmiessler/fabric
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
370 B
Go
22 lines
370 B
Go
package core
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestBuildChatSession(t *testing.T) {
|
|
chat := &Chat{
|
|
Context: "test context",
|
|
Pattern: "test pattern",
|
|
Message: "test message",
|
|
}
|
|
session, err := chat.BuildChatSession()
|
|
if err != nil {
|
|
t.Fatalf("BuildChatSession() error = %v", err)
|
|
}
|
|
|
|
if session == nil {
|
|
t.Fatalf("BuildChatSession() returned nil session")
|
|
}
|
|
}
|