(t *testing.T)
| 76 | } |
| 77 | |
| 78 | func (s) TestOverrideServerName(t *testing.T) { |
| 79 | wantServerName := "server.name" |
| 80 | // This is not testing any handshaker functionality, so it's fine to only |
| 81 | // use NewServerCreds and not NewClientCreds. |
| 82 | c := NewServerCreds(DefaultServerOptions()) |
| 83 | c.OverrideServerName(wantServerName) |
| 84 | if got, want := c.Info().ServerName, wantServerName; got != want { |
| 85 | t.Fatalf("c.Info().ServerName = %v, want %v", got, want) |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | func (s) TestCloneClient(t *testing.T) { |
| 90 | wantServerName := "server.name" |
nothing calls this directly
no test coverage detected