MCPcopy
hub / github.com/tailscale/tailscale / mustJSON

Function mustJSON

cmd/containerboot/main_test.go:1817–1823  ·  view source on GitHub ↗
(t *testing.T, v any)

Source from the content-addressed store, hash-verified

1815}
1816
1817func mustJSON(t *testing.T, v any) []byte {
1818 b, err := json.Marshal(v)
1819 if err != nil {
1820 t.Fatalf("error converting %v to json: %v", v, err)
1821 }
1822 return b
1823}
1824
1825// egress services status given one named tailnet target specified by FQDN. As written by the proxy to its state Secret.
1826func egressSvcStatus(name, fqdn, ip string) egressservices.Status {

Callers 2

TestContainerBootFunction · 0.85
newTestEnvFunction · 0.85

Calls 2

MarshalMethod · 0.65
FatalfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…