MCPcopy Create free account
hub / github.com/koding/kite / TestConfigCopy

Function TestConfigCopy

config/config_test.go:13–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestConfigCopy(t *testing.T) {
14 cases := []*config.Config{
15 config.DefaultConfig, {
16 KontrolURL: "https://koding.com/kontrol/kite",
17 Username: "john",
18 }, {
19 Environment: "aws",
20 XHR: http.DefaultClient,
21 SockJS: &sockjs.DefaultOptions,
22 },
23 }
24
25 for _, cas := range cases {
26 copy := cas.Copy()
27
28 if !reflect.DeepEqual(copy, cas) {
29 t.Fatalf("got %#v, want %#v", copy, cas)
30 }
31 }
32}

Callers

nothing calls this directly

Calls 1

CopyMethod · 0.80

Tested by

no test coverage detected