Fixed formatting of MPPPoseLandmarkerTests.mm

This commit is contained in:
Prianka Liz Kariat 2023-11-20 22:37:43 +05:30
parent 972e3d81c0
commit 447f9cc452

View File

@ -75,7 +75,8 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
} }
- (void)testDetectWithOptionsSucceeds { - (void)testDetectWithOptionsSucceeds {
MPPPoseLandmarkerOptions *options = [self poseLandmarkerOptionsWithModelFileInfo:kPoseLandmarkerBundleAssetFileInfo]; MPPPoseLandmarkerOptions *options =
[self poseLandmarkerOptionsWithModelFileInfo:kPoseLandmarkerBundleAssetFileInfo];
MPPPoseLandmarker *poseLandmarker = [self createPoseLandmarkerWithOptionsSucceeds:options]; MPPPoseLandmarker *poseLandmarker = [self createPoseLandmarkerWithOptionsSucceeds:options];
[self assertResultsOfDetectInImageWithFileInfo:kPoseImageFileInfo [self assertResultsOfDetectInImageWithFileInfo:kPoseImageFileInfo
@ -85,13 +86,14 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
} }
- (void)testDetectWithEmptyResultsSucceeds { - (void)testDetectWithEmptyResultsSucceeds {
MPPPoseLandmarkerOptions *options = [self poseLandmarkerOptionsWithModelFileInfo:kPoseLandmarkerBundleAssetFileInfo]; MPPPoseLandmarkerOptions *options =
[self poseLandmarkerOptionsWithModelFileInfo:kPoseLandmarkerBundleAssetFileInfo];
MPPPoseLandmarker *poseLandmarker = [self createPoseLandmarkerWithOptionsSucceeds:options]; MPPPoseLandmarker *poseLandmarker = [self createPoseLandmarkerWithOptionsSucceeds:options];
[self assertResultsOfDetectInImageWithFileInfo:kNoPoseImageFileInfo [self
assertResultsOfDetectInImageWithFileInfo:kNoPoseImageFileInfo
usingPoseLandmarker:poseLandmarker usingPoseLandmarker:poseLandmarker
approximatelyEqualsPoseLandmarkerResult:[MPPPoseLandmarkerTests approximatelyEqualsPoseLandmarkerResult:[MPPPoseLandmarkerTests emptyPoseLandmarkerResult]];
emptyPoseLandmarkerResult]];
} }
- (void)testCreatePoseLandmarkerFailsWithDelegateInNonLiveStreamMode { - (void)testCreatePoseLandmarkerFailsWithDelegateInNonLiveStreamMode {
@ -433,7 +435,6 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
[self assertMultiPoseLandmarks:poseLandmarkerResult.landmarks [self assertMultiPoseLandmarks:poseLandmarkerResult.landmarks
areApproximatelyEqualToExpectedMultiPoseLandmarks:expectedPoseLandmarkerResult.landmarks]; areApproximatelyEqualToExpectedMultiPoseLandmarks:expectedPoseLandmarkerResult.landmarks];
[self assertLandmarksAreVisibleAndPresentInPoseLandmarkerResult:poseLandmarkerResult]; [self assertLandmarksAreVisibleAndPresentInPoseLandmarkerResult:poseLandmarkerResult];
} }