(ctx context.Context)
| 45 | } |
| 46 | |
| 47 | func getEvents(ctx context.Context) frontend.Events { |
| 48 | if ctx == nil { |
| 49 | pc, _, _, _ := goruntime.Caller(1) |
| 50 | funcName := goruntime.FuncForPC(pc).Name() |
| 51 | log.Fatalf("cannot call '%s': %s", funcName, contextError) |
| 52 | } |
| 53 | result := ctx.Value("events") |
| 54 | if result != nil { |
| 55 | return result.(frontend.Events) |
| 56 | } |
| 57 | pc, _, _, _ := goruntime.Caller(1) |
| 58 | funcName := goruntime.FuncForPC(pc).Name() |
| 59 | log.Fatalf("cannot call '%s': %s", funcName, contextError) |
| 60 | return nil |
| 61 | } |
| 62 | |
| 63 | // Quit the application |
| 64 | func Quit(ctx context.Context) { |
no test coverage detected
searching dependent graphs…