MCPcopy Create free account

hub / github.com/celzero/firestack / functions

Functions3,609 in github.com/celzero/firestack

FunctionTest192
(tst *testing.T)
intra/backend/core_iptree_test.go:11
FunctionTestAccept
Test a successful query over TCP
intra/doh/doh_test.go:543
FunctionTestAcceptClose
Sends a TCP query, and closes the socket before the response is sent. This tests for crashes when a response cannot be delivered.
intra/doh/doh_test.go:634
FunctionTestAcceptFail
Sends a TCP query that results in failure. When a query fails, Accept should close the TCP socket.
intra/doh/doh_test.go:602
FunctionTestAcceptOversize
Test failure due to a response that is larger than the maximum message size for DNS over TCP (65535).
intra/doh/doh_test.go:664
FunctionTestAddDomain
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:74
FunctionTestAddEdnsPaddingCompressedOptQuery
Try to pad a query that already contains an OPT record, but no padding option.
intra/doh/doh_test.go:767
FunctionTestAddEdnsPaddingCompressedPaddedQuery
Try to pad a query that already contains an OPT record with padding. The query should be unmodified by AddEdnsPadding.
intra/doh/doh_test.go:795
FunctionTestAddEdnsPaddingCompressedQuery
Check that we correctly pad a compressed query to the nearest block.
intra/doh/doh_test.go:753
FunctionTestAddEdnsPaddingIdempotent
(t *testing.T)
intra/doh/doh_test.go:704
FunctionTestAddEdnsPaddingUncompressedQuery
Check that we correctly pad an uncompressed query to the nearest block.
intra/doh/doh_test.go:739
FunctionTestAddIP
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:88
FunctionTestBackwardsUse
(t *testing.T)
intra/dialers/retrier_test.go:267
FunctionTestBadUrl
Check that the constructor rejects unsupported URLs.
intra/doh/doh_test.go:151
FunctionTestComputePaddingSize
(t *testing.T)
intra/doh/doh_test.go:692
FunctionTestConfirmNew
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:124
FunctionTestConfirmed
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:100
FunctionTestDialTCP
(t *testing.T)
intra/protect/protect_test.go:55
FunctionTestDisappearingServer
(t *testing.T)
intra/dialers/retrier_test.go:242
FunctionTestDisconfirmMismatch
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:139
FunctionTestDnsMessageCompressedQuerySanityCheck
Sanity check that packing |compressedQueryBytes| constructs the same query byte-for-byte.
intra/doh/doh_test.go:720
FunctionTestDnsMessageUncompressedQuerySanityCheck
Sanity check that packing |uncompressedQueryBytes| constructs a smaller query byte-for-byte, since label compression is enabled by default.
intra/doh/doh_test.go:730
FunctionTestDoh
(t *testing.T)
intra/doh/client_auth_test.go:392
FunctionTestDot
(t *testing.T)
intra/dns53/dot_test.go:163
FunctionTestDot
(t *testing.T)
intra/ipn/proxy_test.go:88
FunctionTestEmptyResponse
Simulate an empty response. (This is not a compliant server behavior.)
intra/doh/doh_test.go:341
FunctionTestEscLike
(tst *testing.T)
intra/backend/core_iptree_test.go:143
MethodTestExit64
TestExit64 connects to public NAT64 endpoints and returns reachable ones.
intra/backend/ipn_proxies.go:210
MethodTestExit64
TestExit64 implements x.Rpn.
intra/ipn/proxies.go:1444
FunctionTestFailedRetry
(t *testing.T)
intra/dialers/retrier_test.go:232
FunctionTestFinRetry
(t *testing.T)
intra/dialers/retrier_test.go:197
FunctionTestGateway
(tst *testing.T)
intra/backend/core_iptree_test.go:80
FunctionTestGenKeypair
create a new private key and prints corres pubkey
intra/backend/ipn_wgkeygen_test.go:23
FunctionTestGeneric
(tester *testing.T)
intra/dnsx/rethinkdns_test.go:37
FunctionTestGetDomain
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:46
FunctionTestGetIP
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:60
FunctionTestGetInvalid
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:35
FunctionTestGetTwice
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:26
FunctionTestHTTPError
Simulate a non-200 HTTP response code.
intra/doh/doh_test.go:372
MethodTestHop
TestHop returns empty diag if origin can hop to via, otherwise returns a diagnosis of why it couldn't. Only WireGuard via & origin are supported, for
intra/backend/ipn_proxies.go:333
MethodTestHop
TestHop implements x.Proxies.
intra/ipn/proxies.go:875
FunctionTestIdle
Regression test for an issue in which the initial handshake timeout continued to apply after the handshake completed.
intra/dialers/retrier_test.go:279
FunctionTestListenUDP
(t *testing.T)
intra/protect/protect_test.go:78
FunctionTestListener
Check that the DNSListener is called with a correct summary.
intra/doh/doh_test.go:445
FunctionTestLookupIPAddr
(t *testing.T)
intra/protect/protect_test.go:96
FunctionTestMemconsoleWriteRead
TestMemconsoleWriteRead writes 5000 log lines into a Memconsole via SetReader and verifies that the number of lines received equals total minus any dr
intra/log/memconsole_test.go:56
FunctionTestMultihostMap
(t *testing.T)
intra/ipn/multihost/multihost_test.go:86
FunctionTestNewTransport
Check that the constructor works.
intra/doh/doh_test.go:143
FunctionTestNilDialer
(t *testing.T)
intra/protect/protect_test.go:106
FunctionTestNilListener
(t *testing.T)
intra/protect/protect_test.go:124
FunctionTestNilLoader
Simulate a nil loader.
intra/doh/client_auth_test.go:330
FunctionTestNoAuth
Simulate a client that does not have a certificate.
intra/doh/client_auth_test.go:267
FunctionTestNormalConnection
(t *testing.T)
intra/dialers/retrier_test.go:187
FunctionTestOne
(t *testing.T)
intra/dnscrypt/servers_test.go:99
FunctionTestParsedDecodeICMPv6EchoRequest
(t *testing.T)
intra/core/wire/parsed_test.go:22
FunctionTestPinger
(t *testing.T)
intra/dns53/dot_test.go:724
FunctionTestProxyClientIP4
(t *testing.T)
intra/ipn/pxclient_test.go:204
FunctionTestProxyClientIP4Live
(t *testing.T)
intra/ipn/pxclient_test.go:279
FunctionTestProxyClientIP6
(t *testing.T)
intra/ipn/pxclient_test.go:243
FunctionTestProxyClientIP6Live
(t *testing.T)
intra/ipn/pxclient_test.go:308
FunctionTestProxyClientIPinfo
(t *testing.T)
intra/ipn/pxclient_test.go:168
FunctionTestProxyClientWindscribe
(t *testing.T)
intra/ipn/pxclient_test.go:139
FunctionTestProxyReaches
(t *testing.T)
intra/dns53/dot_test.go:222
FunctionTestProxyReaches
(t *testing.T)
intra/ipn/proxy_test.go:147
FunctionTestQueryIntegration
Send a DoH query to an actual DoH server
intra/doh/doh_test.go:186
FunctionTestRSACertificate
Simulate a client that has an RSA certificate.
intra/doh/client_auth_test.go:299
FunctionTestRadixSearch
(t *testing.T)
intra/backend/ipn_wgkeygen_test.go:33
FunctionTestRequest
Check that a DNS query is converted correctly into an HTTP query.
intra/doh/doh_test.go:253
FunctionTestResolver
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:191
FunctionTestResponse
Check that a DOH response is returned correctly.
intra/doh/doh_test.go:302
FunctionTestSEProxy
(t *testing.T)
intra/dns53/dot_test.go:265
FunctionTestSendFailed
Simulate an HTTP query error.
intra/doh/doh_test.go:402
FunctionTestSequentialClose
(t *testing.T)
intra/dialers/retrier_test.go:257
FunctionTestServfail
(t *testing.T)
intra/doh/doh_test.go:829
FunctionTestShortQuery
Check for failure when the query is too short to be valid.
intra/doh/doh_test.go:163
FunctionTestSign
Simulate a TLS handshake that requires a client cert and signature.
intra/doh/client_auth_test.go:179
FunctionTestSignNoIntermediate
Simulate a client that does not use an intermediate certificate.
intra/doh/client_auth_test.go:227
FunctionTestStackTraceScenario
TestStackTraceScenario tests the specific scenario from the original stack trace where magiclink.Wait() is called during endpoint swapping.
intra/netstack/waitgroup_test.go:101
FunctionTestTimeoutRetry
(t *testing.T)
intra/dialers/retrier_test.go:208
FunctionTestTwoWriteRetry
(t *testing.T)
intra/dialers/retrier_test.go:220
FunctionTestUn
(tst *testing.T)
intra/backend/core_iptree_test.go:62
FunctionTestWaitGroupRaceCondition
TestWaitGroupRaceCondition tests that the WaitGroup reuse issue is fixed. This test reproduces the scenario where an endpoint is swapped while another
intra/netstack/waitgroup_test.go:13
FunctionTestWgReaches
(t *testing.T)
intra/dns53/dot_test.go:336
MethodTestWin
TestWin implements x.Rpn.
intra/ipn/proxies.go:1407
FunctionTestWinDownloadSpeed
(t *testing.T)
intra/dns53/dot_test.go:604
FunctionTestWinReaches
(t *testing.T)
intra/dns53/dot_test.go:433
FunctionTestWindscribeReaches
(t *testing.T)
intra/ipn/proxy_test.go:192
FunctionTlsDial
(d *tls.Dialer, network, addr string)
intra/dialers/tlsdial.go:35
FunctionToIp6Hint
(answer dns.RR, prefix *net.IPNet)
intra/xdns/dnsutil.go:1285
MethodToResponse
ToResponse implements Header. TODO: it doesn't implement it correctly, instead it statically generates an ICMP Echo Reply packet.
intra/core/wire/icmp6.go:101
MethodToResponse
ToResponse implements Header. TODO: it doesn't implement it correctly, instead it statically generates an ICMP Echo Reply packet.
intra/core/wire/icmp4.go:98
MethodToResponse
ToResponse implements Header.
intra/core/wire/udp.go:106
MethodToResponse
ToResponse implements Header.
intra/core/wire/ip6.go:60
FunctionToken
Token gnerates a 32 byte random as hex (auths dataplane ops)
intra/backend/ipn_pipkeygen.go:572
MethodToken
Token is the entitlement token, if any.
intra/backend/ipn_proxies.go:297
MethodToken
()
intra/ipn/rpn/yegor.go:913
MethodTrace
(c bool, t string)
intra/log/logger.go:531
MethodTrack
(cid, uid, pid string, conns ...MinConn)
intra/core/connmap.go:108
MethodTranslate
Translate enables or disables ALG and fixed responses.
intra/backend/dnsx.go:151
MethodTranslate
(tr, fix bool)
intra/dnsx/transport.go:297
← previousnext →3,301–3,400 of 3,609, ranked by callers