(key string, args []interface{})
| 302 | } |
| 303 | |
| 304 | func (fake *FakeProcess) recordInvocation(key string, args []interface{}) { |
| 305 | fake.invocationsMutex.Lock() |
| 306 | defer fake.invocationsMutex.Unlock() |
| 307 | if fake.invocations == nil { |
| 308 | fake.invocations = map[string][][]interface{}{} |
| 309 | } |
| 310 | if fake.invocations[key] == nil { |
| 311 | fake.invocations[key] = [][]interface{}{} |
| 312 | } |
| 313 | fake.invocations[key] = append(fake.invocations[key], args) |
| 314 | } |
| 315 | |
| 316 | var _ garden.Process = new(FakeProcess) |