This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeCommon/pkg/serverconfigs/http_location_ref_test.go
T

15 lines
316 B
Go

package serverconfigs
import (
"github.com/iwind/TeaGo/logs"
"testing"
)
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)
}