Files
EdgeCommon/pkg/serverconfigs/http_location_ref_test.go
GoEdgeLab 2f3981704e v1.4.1
2024-07-27 13:29:26 +08:00

16 lines
317 B
Go

package serverconfigs
import (
"testing"
"github.com/iwind/TeaGo/logs"
)
func TestHTTPLocationRef(t *testing.T) {
ref := &HTTPLocationRef{LocationId: 1}
logs.PrintAsJSON(ref, t)
ref.Children = append(ref.Children, &HTTPLocationRef{LocationId: 2}, &HTTPLocationRef{LocationId: 3})
logs.PrintAsJSON(ref, t)
}