MCPcopy Create free account
hub / github.com/pion/ice / TestGetRemoteCredentials

Function TestGetRemoteCredentials

agent_test.go:1941–1957  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1939}
1940
1941func TestGetRemoteCredentials(t *testing.T) {
1942 var config AgentConfig
1943 agent, err := NewAgent(&config)
1944 require.NoError(t, err)
1945 defer func() {
1946 require.NoError(t, agent.Close())
1947 }()
1948
1949 agent.remoteUfrag = "remoteUfrag"
1950 agent.remotePwd = "remotePwd"
1951
1952 actualUfrag, actualPwd, err := agent.GetRemoteUserCredentials()
1953 require.NoError(t, err)
1954
1955 require.Equal(t, actualUfrag, agent.remoteUfrag)
1956 require.Equal(t, actualPwd, agent.remotePwd)
1957}
1958
1959func TestGetRemoteCandidates(t *testing.T) {
1960 var config AgentConfig

Callers

nothing calls this directly

Calls 4

CloseMethod · 0.95
NewAgentFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…