Content-Length: 267798 | pFad | http://github.com/flutter/flutter/issues/171919

99 [Tool] `plugins_test.dart` use of `expect(registrantImpl, isNot(...))` always passes · Issue #171919 · flutter/flutter · GitHub
Skip to content

[Tool] plugins_test.dart use of expect(registrantImpl, isNot(...)) always passes #171919

@matanlurey

Description

@matanlurey
final File registrantImpl = linuxProject.managedDirectory.childFile(
  'generated_plugin_registrant.cc',
);

expect(registrantImpl, exists);
expect(registrantImpl, isNot(contains('SomePlugin')));
expect(registrantImpl, isNot(contains('some_plugin')));

This does not do what you expect ... it always silently passes (and does not read the file).

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: tech-debtTechnical debt, code quality, testing, etc.team-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: http://github.com/flutter/flutter/issues/171919

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy