(ctx context.Context, item Item, dst chan<- Item, operatorOptions operatorOptions)
| 324 | } |
| 325 | |
| 326 | func (op *averageInt64Operator) next(ctx context.Context, item Item, dst chan<- Item, operatorOptions operatorOptions) { |
| 327 | switch v := item.V.(type) { |
| 328 | default: |
| 329 | Error(IllegalInputError{error: fmt.Sprintf("expected type: int64, got: %t", item)}).SendContext(ctx, dst) |
| 330 | operatorOptions.stop() |
| 331 | case int64: |
| 332 | op.sum += v |
| 333 | op.count++ |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | func (op *averageInt64Operator) err(ctx context.Context, item Item, dst chan<- Item, operatorOptions operatorOptions) { |
| 338 | defaultErrorFuncOperator(ctx, item, dst, operatorOptions) |
nothing calls this directly
no test coverage detected