Files
APIPark/module/system/dto/input_test.go
T
2025-02-18 15:42:57 +08:00

21 lines
349 B
Go

package system_dto
import (
"log"
"testing"
)
func TestMap(t *testing.T) {
invokeAddress := "http://127.0.0.1:8080"
ollamaAddress := "http://127.0.0.1:8081"
input := &InputSetting{
InvokeAddress: &invokeAddress,
OllamaAddress: &ollamaAddress,
}
err := input.Validate()
if err != nil {
t.Error(err)
}
log.Println(ToKeyMap(input))
}