Skip to content

Commit 854642d

Browse files
committed
refactor: use -l for line location
1 parent 4d5faf7 commit 854642d

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

src/test/kotlin/integration/BatchLiveInstrumentCLI.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ class BatchLiveInstrumentCLI : CLIIntegrationTest() {
4141
"-v",
4242
"add", "breakpoint",
4343
"-i", "bp-$i",
44-
"integration.BatchLiveInstrumentCLI", i.toString(),
44+
"-l", i.toString(),
45+
"integration.BatchLiveInstrumentCLI",
4546
)
4647
)
4748
val addedLiveBp = LiveBreakpoint(JsonObject(interceptor.output.toString()))

src/test/kotlin/integration/CommandParseTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ class CommandParseTest : CLIIntegrationTest() {
101101
"-v admin remove-developer $newDev".split(" ").toTypedArray()
102102
)
103103
Main.main(
104-
"-v add breakpoint -h 100 spp.example.webapp.model.User 48".split(" ").toTypedArray()
104+
"-v add breakpoint -h 100 -l 48 spp.example.webapp.model.User".split(" ").toTypedArray()
105105
)
106106
Main.main(
107-
"-v add log -h 100 spp.example.webapp.model.User 48 test-message".split(" ").toTypedArray()
107+
"-v add log -h 100 -l 48 spp.example.webapp.model.User test-message".split(" ").toTypedArray()
108108
)
109109
Main.main(
110110
"-v get instruments".split(" ").toTypedArray()

src/test/kotlin/integration/LiveInstrumentCLI.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
3838
"-v",
3939
"add", "log",
4040
"-h", "100",
41+
"-l", "1",
4142
"integration.LiveInstrumentCLI",
42-
"1",
4343
"addRemoveLiveLog"
4444
)
4545
)
@@ -80,7 +80,8 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
8080
arrayOf(
8181
"-v",
8282
"add", "breakpoint",
83-
"integration.LiveInstrumentCLI", "2",
83+
"-l", "2",
84+
"integration.LiveInstrumentCLI",
8485
)
8586
)
8687
val removedLiveBp = LiveBreakpoint(JsonObject(interceptor.output.toString()))
@@ -118,7 +119,8 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
118119
arrayOf(
119120
"-v",
120121
"add", "log",
121-
"integration.LiveInstrumentCLI", "4",
122+
"-l", "4",
123+
"integration.LiveInstrumentCLI",
122124
"getMultipleLiveInstruments"
123125
)
124126
)
@@ -134,7 +136,8 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
134136
arrayOf(
135137
"-v",
136138
"add", "breakpoint",
137-
"integration.LiveInstrumentCLI", "4",
139+
"-l", "4",
140+
"integration.LiveInstrumentCLI",
138141
)
139142
)
140143
val addedLiveBp = LiveBreakpoint(JsonObject(interceptor.output.toString()))

0 commit comments

Comments
 (0)