mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-04 05:00:24 +08:00
15 lines
316 B
Go
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)
|
|
}
|