-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support hybrid Agent Id and version if iOSAgent is invoked by flutter…
…-agent or react-native-agent
- Loading branch information
Hongyan Jiang
authored and
GitHub Enterprise
committed
Jan 19, 2024
1 parent
987936f
commit d79dce2
Showing
12 changed files
with
176 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// Copyright © 2024 IBM Corp. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import XCTest | ||
@testable import InstanaAgent | ||
|
||
class HybridAgentOptionsTests: XCTestCase { | ||
func test_init() { | ||
let mco = HybridAgentOptions(id:"f", version:"3.0.6") | ||
AssertEqualAndNotNil(mco.id, "f") | ||
AssertEqualAndNotNil(mco.version, "3.0.6") | ||
|
||
let mcoTooLong = HybridAgentOptions(id:"react-native-agent", version:"2.0.3") | ||
AssertEqualAndNotNil(mcoTooLong.id, "react-native-age") | ||
AssertEqualAndNotNil(mcoTooLong.version, "2.0.3") | ||
|
||
let mcoMisConfiged = HybridAgentOptions(id:"", version:"") | ||
AssertEqualAndNotNil(mcoMisConfiged.id, "") | ||
AssertEqualAndNotNil(mcoMisConfiged.version, "") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.