(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestSingletonConfig(t *testing.T) { |
| 60 | var wg sync.WaitGroup |
| 61 | wg.Add(10) |
| 62 | |
| 63 | for i := 0; i < 10; i++ { |
| 64 | go func() { |
| 65 | defer wg.Done() |
| 66 | config := GetConfig() |
| 67 | fmt.Printf("config address : %p \n", config) |
| 68 | }() |
| 69 | } |
| 70 | |
| 71 | wg.Wait() |
| 72 | |
| 73 | fmt.Printf("config address : %p", GetConfig()) |
| 74 | } |
nothing calls this directly
no test coverage detected