mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-12 18:11:34 +08:00
21 lines
349 B
Go
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))
|
|
}
|