Due to the tight development deadline for the Computer-Aided Tagging feature, much of the code in the MachineVision extension is not yet covered by tests. Now that the code is nearly complete and we are waiting on tech reviews, this task is to fill out test coverage prior to the official feature launch.
Classes needing test coverage:
====PHP
//(note: MediaWiki\Extension\MachineVision\ prefix omitted from classpaths)//
[] LabelSuggestion ( https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/MachineVision/+/547325 )
[] MachineVisionEntitySaveException
[] Services
[] TitleFilter
[] Util ( https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MachineVision/+/547336 )
[] Api\ApiQueryImageLabels
[] Api\ApiQueryUnreviewedImageCount
[] Api\ApiQueryUnreviewedImageLabels
[] Api\ApiReviewImageLabels
[] Handler\GoogleCloudVisionHandler
[] Handler\LabelResolver
[] Handler\RandomWikidataIdHandler
[] Handler\Registry
[] Handler\WikidataDepictsSetter
[] Special\SpecialSuggestedTags
====JS
[] DOMLessGroupWidget
[] TemplateRenderingDOMLessGroupWidget
[] ConfirmTagsDialog ([[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MachineVision/+/549189 | patch ]])
[] ImageWithSuggestionWidget ([[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MachineVision/+/549189 | patch ]])
[] OnboardingDialog
[] PersonalUploadsCount
[] SuggestedTagsCardstack ([[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MachineVision/+/549205 | patch ]])
[] SuggestedTagsPage [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MachineVision/+/549580 | patch, incomplete ]]
[] SuggestionWidget ([[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MachineVision/+/549189 | patch ]])
[] UserMessage ([[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MachineVision/+/549189 | patch ]])
My intent is not that one person picks this up in its entirety, but that anyone can add tests for an individual class or related group of classes as time becomes available. Please sign up next to one or more classes as you intend to work on adding tests for them, as I've done above for TitleFilter.