(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestMap(t *testing.T) { |
| 9 | invokeAddress := "http://127.0.0.1:8080" |
| 10 | ollamaAddress := "http://127.0.0.1:8081" |
| 11 | input := &InputSetting{ |
| 12 | InvokeAddress: &invokeAddress, |
| 13 | OllamaAddress: &ollamaAddress, |
| 14 | } |
| 15 | err := input.Validate() |
| 16 | if err != nil { |
| 17 | t.Error(err) |
| 18 | } |
| 19 | log.Println(ToKeyMap(input)) |
| 20 | } |