(ctx context.Context)
| 30 | } |
| 31 | |
| 32 | func ContextWithUpdates(ctx context.Context) context.Context { |
| 33 | updatesVal := ctx.Value(waveObjUpdateKey) |
| 34 | if updatesVal != nil { |
| 35 | return ctx |
| 36 | } |
| 37 | return context.WithValue(ctx, waveObjUpdateKey, &contextUpdatesType{ |
| 38 | UpdatesStack: []map[ORef]WaveObjUpdate{make(map[ORef]WaveObjUpdate)}, |
| 39 | }) |
| 40 | } |
| 41 | |
| 42 | func ContextGetUpdates(ctx context.Context) map[ORef]WaveObjUpdate { |
| 43 | updatesVal := ctx.Value(waveObjUpdateKey) |
no test coverage detected