Skip to content

Commit 3a6ece3

Browse files
authored
Apply suggestions from code review
Signed-off-by: Marcin <[email protected]>
1 parent 7ca59f9 commit 3a6ece3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tests/testthat/test-utils-get_code_dependency.R

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ testthat::describe("get_code with multiple assignments inside an expression", {
8888
})
8989

9090
testthat::describe("get_code with subassignments", {
91-
testthat::it("tracks [ subassignment as producing the base object", {
91+
it("tracks [ subassignment as producing the base object", {
9292
td <- qenv() |>
9393
within({
9494
x <- 1:10
@@ -100,7 +100,7 @@ testthat::describe("get_code with subassignments", {
100100
testthat::expect_equal(get_code(td, names = "x"), code_source)
101101
})
102102

103-
testthat::it("tracks [[ subassignment as producing the base object", {
103+
it("tracks [[ subassignment as producing the base object", {
104104
td <- qenv() |>
105105
within({
106106
lst <- list(a = 1, b = 2)
@@ -112,7 +112,7 @@ testthat::describe("get_code with subassignments", {
112112
testthat::expect_equal(get_code(td, names = "lst"), code_source)
113113
})
114114

115-
testthat::it("tracks nested subassignments", {
115+
it("tracks nested subassignments", {
116116
td <- qenv() |>
117117
within({
118118
df <- data.frame(x = 1:5, y = 6:10)
@@ -124,7 +124,7 @@ testthat::describe("get_code with subassignments", {
124124
testthat::expect_equal(get_code(td, names = "df"), code_source)
125125
})
126126

127-
testthat::it("tracks multiple subassignments to same object", {
127+
it("tracks multiple subassignments to same object", {
128128
td <- qenv() |>
129129
within({
130130
iris <- iris
@@ -137,7 +137,7 @@ testthat::describe("get_code with subassignments", {
137137
testthat::expect_equal(get_code(td, names = "iris"), code_source)
138138
})
139139

140-
testthat::it("tracks subassignments with complex expressions", {
140+
it("tracks subassignments with complex expressions", {
141141
td <- qenv() |>
142142
within({
143143
mat <- matrix(1:12, nrow = 3)
@@ -149,7 +149,7 @@ testthat::describe("get_code with subassignments", {
149149
testthat::expect_equal(get_code(td, names = "mat"), code_source)
150150
})
151151

152-
testthat::it("tracks subassignments with function calls on LHS", {
152+
it("tracks subassignments with function calls on LHS", {
153153
td <- qenv() |>
154154
within({
155155
lst <- list(a = 1, b = 2)
@@ -161,7 +161,7 @@ testthat::describe("get_code with subassignments", {
161161
testthat::expect_equal(get_code(td, names = "lst"), code_source)
162162
})
163163

164-
testthat::it("tracks -> operator with subassignments", {
164+
it("tracks -> operator with subassignments", {
165165
td <- qenv() |>
166166
within({
167167
x <- 1:10
@@ -173,7 +173,7 @@ testthat::describe("get_code with subassignments", {
173173
testthat::expect_equal(get_code(td, names = "x"), code_source)
174174
})
175175

176-
testthat::it("tracks attributes() function with subassignments", {
176+
it("tracks attributes() function with subassignments", {
177177
td <- qenv() |>
178178
within({
179179
x <- 1:5
@@ -185,7 +185,7 @@ testthat::describe("get_code with subassignments", {
185185
testthat::expect_equal(get_code(td, names = "x"), code_source)
186186
})
187187

188-
testthat::it("handles complex nested subassignments", {
188+
it("handles complex nested subassignments", {
189189
td <- qenv() |>
190190
within({
191191
df <- data.frame(x = 1:5, y = 6:10)
@@ -197,7 +197,7 @@ testthat::describe("get_code with subassignments", {
197197
testthat::expect_equal(get_code(td, names = "df"), code_source)
198198
})
199199

200-
testthat::it("handles subassignments with multiple operators", {
200+
it("handles subassignments with multiple operators", {
201201
td <- qenv() |>
202202
within({
203203
lst <- list(a = list(b = 1, c = 2))
@@ -209,7 +209,7 @@ testthat::describe("get_code with subassignments", {
209209
testthat::expect_equal(get_code(td, names = "lst"), code_source)
210210
})
211211

212-
testthat::it("handles subassignments with data frame column creation", {
212+
it("handles subassignments with data frame column creation", {
213213
td <- qenv() |>
214214
within({
215215
df <- data.frame(x = 1:3)
@@ -221,7 +221,7 @@ testthat::describe("get_code with subassignments", {
221221
testthat::expect_equal(get_code(td, names = "df"), code_source)
222222
})
223223

224-
testthat::it("handles subassignments with matrix indexing", {
224+
it("handles subassignments with matrix indexing", {
225225
td <- qenv() |>
226226
within({
227227
mat <- matrix(1:9, nrow = 3)
@@ -233,7 +233,7 @@ testthat::describe("get_code with subassignments", {
233233
testthat::expect_equal(get_code(td, names = "mat"), code_source)
234234
})
235235

236-
testthat::it("handles subassignments with logical indexing", {
236+
it("handles subassignments with logical indexing", {
237237
td <- qenv() |>
238238
within({
239239
vec <- 1:10

0 commit comments

Comments
 (0)