Home / Function/ Test_Client_SetRootCertificateFromString() — fiber Function Reference

Test_Client_SetRootCertificateFromString() — fiber Function Reference

Architecture documentation for the Test_Client_SetRootCertificateFromString() function in client_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  799d0020_f918_3ed2_af1c_7e2e27363c3c["Test_Client_SetRootCertificateFromString()"]
  5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2["client_test.go"]
  799d0020_f918_3ed2_af1c_7e2e27363c3c -->|defined in| 5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2
  style 799d0020_f918_3ed2_af1c_7e2e27363c3c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/client_test.go lines 1937–1949

func Test_Client_SetRootCertificateFromString(t *testing.T) {
	t.Parallel()

	file, err := os.Open("../.github/testdata/ssl.pem")
	defer func() { require.NoError(t, file.Close()) }()
	require.NoError(t, err)

	pem, err := io.ReadAll(file)
	require.NoError(t, err)

	client := New().SetRootCertificateFromString(string(pem))
	require.NotNil(t, client.TLSConfig().RootCAs)
}

Domain

Subdomains

Frequently Asked Questions

What does Test_Client_SetRootCertificateFromString() do?
Test_Client_SetRootCertificateFromString() is a function in the fiber codebase, defined in client/client_test.go.
Where is Test_Client_SetRootCertificateFromString() defined?
Test_Client_SetRootCertificateFromString() is defined in client/client_test.go at line 1937.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free