Files
GoLangProxy/golangproxy/tests/proxy_test.go
2025-03-02 17:14:05 +00:00

16 lines
294 B
Go

package tests
import (
"testing"
"golangproxy/proxy"
)
func TestCreateRoute(t *testing.T) {
// Test HTTP target
route := proxy.CreateRoute("http://example.com", false)
if route.Target != "http://example.com" {
t.Errorf("Expected target http://example.com, got %s", route.Target)
}
}