Skip to content

Analyzer failures in camera plugin in test/camera_test.dart #73059

@jmagman

Description

@jmagman
$ pub global activate tuneup
$ cd packages/camera/camera
$ flutter pub get
$ pub global run tuneup check
Checking project camera...              

  error • 5 positional argument(s) expected, but 3 found at test/camera_test.dart:29:59 • (not_enough_positional_arguments)
  error • 'MockCameraPlatform.startVideoRecording' ('Future<XFile> Function(int)') isn't a valid override of 'CameraPlatform.startVideoRecording' ('Future<void> Function(int, {Duration maxVideoDuration})') at test/camera_test.dart:644:17 • (invalid_override)

2 issues found; analyzed 16 source files in 3.7s.

I reproduced locally on flutter/plugins@1c00905, also seen in https://ci.chromium.org/ui/p/flutter/builders/prod/Linux%20flutter_plugins/234/overview

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions