Add unit test for outbound handler

This commit is contained in:
yuhan6665 committed 2020-06-27 20:50:39 -04:00
1 parent 886598542c
commit cef1836f5a
2 files changed
+70 -2

No files matched your search

+3 -2
View File
@@ -6,9 +6,10 @@ import (
"context"
)
type key int
// V2rayKey is the key type of Instance in Context, exported for test.
type V2rayKey int
const v2rayKey key = 1
const v2rayKey V2rayKey = 1
// FromContext returns an Instance from the given context, or nil if the context doesn't contain one.
func FromContext(ctx context.Context) *Instance {