Skip to content

Commit

Permalink
add test interaction history list
Browse files Browse the repository at this point in the history
  • Loading branch information
cdillard-NewRelic committed Oct 10, 2024
1 parent 4a92c67 commit 8e8674f
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#import "NRMAInteractionHistory.h"

@interface NRMAExceptionMetaDataTest : XCTestCase

Expand All @@ -31,6 +32,7 @@ - (void)tearDown
[super tearDown];
}

// test
- (void)test_NRMA_writeNRMeta
{

Expand Down Expand Up @@ -68,7 +70,17 @@ - (void)test_NRMA_writeNRMeta
NRMA_setDiskFree(123456);
NRMA_setAccountId(2);
NRMA_setAgentId(1);



// Add interactions.

long long interactionTime = 1000;
NSString* interactionName = @"TestTrace";
NRMA__AddInteraction(interactionName.UTF8String, interactionTime);
long long interactionTime2 = 2000;
NSString* interactionName2 = @"TestTrace2";
NRMA__AddInteraction(interactionName2.UTF8String, interactionTime2);

NRMA_writeNRMeta(NULL, NULL, NULL);


Expand Down

0 comments on commit 8e8674f

Please sign in to comment.