Skip to content

Commit 270940c

Browse files
committed
fix: ios tests
1 parent 924f1d9 commit 270940c

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

example/ios/InstabugTests/ApmApiTests.m

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ - (void)setUp {
1919
self.api = [[ApmApi alloc] init];
2020
}
2121

22-
- (IBGExecutionTrace *)mockTraceWithId:(NSString *)traceId {
23-
NSString* name = @"trace-name";
24-
IBGExecutionTrace *mTrace = OCMClassMock([IBGExecutionTrace class]);
25-
26-
OCMStub([self.mAPM startExecutionTraceWithName:name]).andReturn(mTrace);
27-
28-
[self.api startExecutionTraceId:traceId name:name completion:^(NSString * _Nullable _, FlutterError * _Nullable __) {}];
29-
30-
return mTrace;
31-
}
3222

3323
- (void)testSetEnabled {
3424
NSNumber *isEnabled = @1;
@@ -117,30 +107,6 @@ - (void)testSetAutoUITraceEnabled {
117107
}
118108

119109

120-
121-
122-
- (void)testSetExecutionTraceAttribute {
123-
NSString *traceId = @"trace-id";
124-
NSString *key = @"is_premium";
125-
NSString *value = @"true";
126-
FlutterError *error;
127-
id mTrace = [self mockTraceWithId:traceId];
128-
129-
[self.api setExecutionTraceAttributeId:traceId key:key value:value error:&error];
130-
131-
OCMVerify([mTrace setAttributeWithKey:key value:value]);
132-
}
133-
134-
- (void)testEndExecutionTrace {
135-
NSString *traceId = @"trace-id";
136-
FlutterError *error;
137-
IBGExecutionTrace *mTrace = [self mockTraceWithId:traceId];
138-
139-
[self.api endExecutionTraceId:traceId error:&error];
140-
141-
OCMVerify([mTrace end]);
142-
}
143-
144110
- (void) testStartFlow {
145111
NSString* appFlowName = @"app-flow-name";
146112
FlutterError *error;

0 commit comments

Comments
 (0)