Download flutter/packages/integration_test/ios/Classes/IntegrationTestIosTest.m from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/integration_test/ios/Classes/IntegrationTestIosTest.m
- Command line
-
hf download hf://luom2645/agent-workspace@7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/integration_test/ios/Classes/IntegrationTestIosTest.m
-
curl -L -o IntegrationTestIosTest.m https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/integration_test/ios/Classes/IntegrationTestIosTest.m
1.48 kB
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #import "IntegrationTestIosTest.h" | |
| #import "IntegrationTestPlugin.h" | |
| #import "FLTIntegrationTestRunner.h" | |
| #pragma mark - Deprecated | |
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wdeprecated-implementations" | |
| @implementation IntegrationTestIosTest | |
| - (BOOL)testIntegrationTest:(NSString **)testResult { | |
| NSLog(@"==================== Test Results ====================="); | |
| NSMutableArray<NSString *> *failedTests = [NSMutableArray array]; | |
| NSMutableArray<NSString *> *testNames = [NSMutableArray array]; | |
| [[FLTIntegrationTestRunner new] testIntegrationTestWithResults:^(SEL testSelector, BOOL success, NSString *message) { | |
| NSString *testName = NSStringFromSelector(testSelector); | |
| [testNames addObject:testName]; | |
| if (success) { | |
| NSLog(@"%@ passed.", testName); | |
| } else { | |
| NSLog(@"%@ failed: %@", testName, message); | |
| [failedTests addObject:testName]; | |
| } | |
| }]; | |
| NSLog(@"================== Test Results End ===================="); | |
| BOOL testPass = failedTests.count == 0; | |
| if (!testPass && testResult != NULL) { | |
| *testResult = | |
| [NSString stringWithFormat:@"Detected failed integration test(s) %@ among %@", | |
| failedTests.description, testNames.description]; | |
| } | |
| return testPass; | |
| } | |
| @end | |
| #pragma clang diagnostic pop | |