mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 19:56:37 +08:00
实现路径规则部分功能
This commit is contained in:
14
pkg/serverconfigs/http_location_ref_test.go
Normal file
14
pkg/serverconfigs/http_location_ref_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user