// // Copyright Amazon.com Inc. or its affiliates. // All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // import Amplify import Foundation class MockPredictionsCategoryPlugin: MessageReporter, PredictionsCategoryPlugin { func identify(_ request: Predictions.Identify.Request, in image: URL, options: Predictions.Identify.Options?) async throws -> Output { fatalError() } func convert(_ request: Predictions.Convert.Request, options: Options?) async throws -> Output { fatalError() } func interpret(text: String, options: Predictions.Interpret.Options?) async throws -> Predictions.Interpret.Result { fatalError() } func configure(using configuration: Any?) throws { notify() } func reset() async { notify("reset") } var key: String { return "MockPredictionsCategoryPlugin" } } class MockSecondPredictionsCategoryPlugin: MockPredictionsCategoryPlugin { override var key: String { return "MockSecondPredictionsCategoryPlugin" } }