This commit is contained in:
RPRX 2020-11-25 19:01:53 +08:00
parent 47d23e9972
commit c7f7c08ead
711 changed files with 82154 additions and 2 deletions

19
core/context_test.go Normal file
View file

@ -0,0 +1,19 @@
package core_test
import (
"context"
"testing"
. "github.com/xtls/xray-core/v1/core"
)
func TestContextPanic(t *testing.T) {
defer func() {
r := recover()
if r == nil {
t.Error("expect panic, but nil")
}
}()
MustFromContext(context.Background())
}