(in interface{})
| 2025 | } |
| 2026 | |
| 2027 | func getOrCreateData(in interface{}) *data { |
| 2028 | // Modify value that was passed as a parameter. |
| 2029 | // Client takes care of concurrent modifications. |
| 2030 | r, ok := in.(*data) |
| 2031 | if !ok || r == nil { |
| 2032 | return &data{Members: map[string]member{}} |
| 2033 | } |
| 2034 | return r |
| 2035 | } |
| 2036 | |
| 2037 | type testLogger struct { |
| 2038 | } |
no outgoing calls
no test coverage detected