@@ -102,7 +102,7 @@ def test_snappy_include_is_amended(self):
102
102
)
103
103
patcher = leveldb_patch .CMakeListsPatcher (
104
104
lines ,
105
- script_name = "MyCoolSript " ,
105
+ script_name = "MyCoolScript " ,
106
106
snappy_source_dir = pathlib .Path ("a/b" ),
107
107
snappy_binary_dir = pathlib .Path ("c/d" ),
108
108
)
@@ -111,11 +111,11 @@ def test_snappy_include_is_amended(self):
111
111
112
112
self .assertSequenceEqual (patched_lines , [
113
113
"target_include_directories(leveldb" ,
114
- "# BEGIN: leveldb_include_start modification by MyCoolSript " ,
114
+ "# BEGIN: leveldb_include_start modification by MyCoolScript " ,
115
115
"PRIVATE" ,
116
116
"a/b" ,
117
117
"c/d" ,
118
- "# END: leveldb_include_start modification by MyCoolSript " ,
118
+ "# END: leveldb_include_start modification by MyCoolScript " ,
119
119
"PUBLIC" ,
120
120
"path1" ,
121
121
"path2" ,
@@ -132,7 +132,7 @@ def test_snappy_include_lines_adopt_indenting_and_eol_convention(self):
132
132
)
133
133
patcher = leveldb_patch .CMakeListsPatcher (
134
134
lines ,
135
- script_name = "MyCoolSript " ,
135
+ script_name = "MyCoolScript " ,
136
136
snappy_source_dir = pathlib .Path ("a/b" ),
137
137
snappy_binary_dir = pathlib .Path ("c/d" ),
138
138
)
@@ -141,11 +141,11 @@ def test_snappy_include_lines_adopt_indenting_and_eol_convention(self):
141
141
142
142
self .assertSequenceEqual (patched_lines , [
143
143
"target_include_directories(leveldb\n " ,
144
- "# BEGIN: leveldb_include_start modification by MyCoolSript \n " ,
144
+ "# BEGIN: leveldb_include_start modification by MyCoolScript \n " ,
145
145
" PRIVATE \n " ,
146
146
" a/b \n " ,
147
147
" c/d \n " ,
148
- "# END: leveldb_include_start modification by MyCoolSript \n " ,
148
+ "# END: leveldb_include_start modification by MyCoolScript \n " ,
149
149
" PUBLIC \n " ,
150
150
" path1 \n " ,
151
151
" path2 \n " ,
@@ -166,7 +166,7 @@ def test_snappy_include_line_does_not_affect_surrounding_lines(self):
166
166
)
167
167
patcher = leveldb_patch .CMakeListsPatcher (
168
168
lines ,
169
- script_name = "MyCoolSript " ,
169
+ script_name = "MyCoolScript " ,
170
170
snappy_source_dir = pathlib .Path ("a/b" ),
171
171
snappy_binary_dir = pathlib .Path ("c/d" ),
172
172
)
@@ -177,11 +177,11 @@ def test_snappy_include_line_does_not_affect_surrounding_lines(self):
177
177
"aaa" ,
178
178
"bbb" ,
179
179
"target_include_directories(leveldb" ,
180
- "# BEGIN: leveldb_include_start modification by MyCoolSript " ,
180
+ "# BEGIN: leveldb_include_start modification by MyCoolScript " ,
181
181
"PRIVATE" ,
182
182
"a/b" ,
183
183
"c/d" ,
184
- "# END: leveldb_include_start modification by MyCoolSript " ,
184
+ "# END: leveldb_include_start modification by MyCoolScript " ,
185
185
"PUBLIC" ,
186
186
"path1" ,
187
187
"path2" ,
@@ -196,18 +196,18 @@ def test_leveldb_snappy_link_line_is_commented_and_replaced(self):
196
196
)
197
197
patcher = leveldb_patch .CMakeListsPatcher (
198
198
lines ,
199
- script_name = "MyCoolSript " ,
199
+ script_name = "MyCoolScript " ,
200
200
snappy_source_dir = pathlib .Path ("a/b" ),
201
201
snappy_binary_dir = pathlib .Path ("c/d" ),
202
202
)
203
203
204
204
patched_lines = tuple (patcher .patch ())
205
205
206
206
self .assertSequenceEqual (patched_lines , [
207
- "# BEGIN: leveldb_snappy_link_line modification by MyCoolSript " ,
207
+ "# BEGIN: leveldb_snappy_link_line modification by MyCoolScript " ,
208
208
"# target_link_libraries(leveldb snappy)" ,
209
209
"target_link_libraries(leveldb Snappy::Snappy)" ,
210
- "# END: leveldb_snappy_link_line modification by MyCoolSript " ,
210
+ "# END: leveldb_snappy_link_line modification by MyCoolScript " ,
211
211
])
212
212
213
213
def test_leveldb_snappy_link_line_has_indent_and_eol_preserved (self ):
@@ -216,18 +216,18 @@ def test_leveldb_snappy_link_line_has_indent_and_eol_preserved(self):
216
216
)
217
217
patcher = leveldb_patch .CMakeListsPatcher (
218
218
lines ,
219
- script_name = "MyCoolSript " ,
219
+ script_name = "MyCoolScript " ,
220
220
snappy_source_dir = pathlib .Path ("a/b" ),
221
221
snappy_binary_dir = pathlib .Path ("c/d" ),
222
222
)
223
223
224
224
patched_lines = tuple (patcher .patch ())
225
225
226
226
self .assertSequenceEqual (patched_lines , [
227
- "# BEGIN: leveldb_snappy_link_line modification by MyCoolSript \n " ,
227
+ "# BEGIN: leveldb_snappy_link_line modification by MyCoolScript \n " ,
228
228
" # target_link_libraries(leveldb snappy) \n " ,
229
229
" target_link_libraries(leveldb Snappy::Snappy) \n " ,
230
- "# END: leveldb_snappy_link_line modification by MyCoolSript \n " ,
230
+ "# END: leveldb_snappy_link_line modification by MyCoolScript \n " ,
231
231
])
232
232
233
233
def test_leveldb_snappy_link_line_does_not_affect_surrounding_lines (self ):
@@ -240,7 +240,7 @@ def test_leveldb_snappy_link_line_does_not_affect_surrounding_lines(self):
240
240
)
241
241
patcher = leveldb_patch .CMakeListsPatcher (
242
242
lines ,
243
- script_name = "MyCoolSript " ,
243
+ script_name = "MyCoolScript " ,
244
244
snappy_source_dir = pathlib .Path ("a/b" ),
245
245
snappy_binary_dir = pathlib .Path ("c/d" ),
246
246
)
@@ -250,10 +250,10 @@ def test_leveldb_snappy_link_line_does_not_affect_surrounding_lines(self):
250
250
self .assertSequenceEqual (patched_lines , [
251
251
"aaa" ,
252
252
"bbb" ,
253
- "# BEGIN: leveldb_snappy_link_line modification by MyCoolSript " ,
253
+ "# BEGIN: leveldb_snappy_link_line modification by MyCoolScript " ,
254
254
"# target_link_libraries(leveldb snappy)" ,
255
255
"target_link_libraries(leveldb Snappy::Snappy)" ,
256
- "# END: leveldb_snappy_link_line modification by MyCoolSript " ,
256
+ "# END: leveldb_snappy_link_line modification by MyCoolScript " ,
257
257
"ccc" ,
258
258
"ddd" ,
259
259
])
@@ -270,30 +270,30 @@ def test_all_patches_combined(self):
270
270
271
271
patcher = leveldb_patch .CMakeListsPatcher (
272
272
lines ,
273
- script_name = "MyCoolSript " ,
273
+ script_name = "MyCoolScript " ,
274
274
snappy_source_dir = pathlib .Path ("a/b" ),
275
275
snappy_binary_dir = pathlib .Path ("c/d" ),
276
276
)
277
277
patched_lines = tuple (patcher .patch ())
278
278
279
279
self .assertSequenceEqual (patched_lines , [
280
- "# BEGIN: snappy_detect_line modification by MyCoolSript " ,
280
+ "# BEGIN: snappy_detect_line modification by MyCoolScript " ,
281
281
"""# check_library_exists(snappy snappy_compress "" HAVE_SNAPPY)""" ,
282
282
"""set(HAVE_SNAPPY ON CACHE BOOL "")""" ,
283
- "# END: snappy_detect_line modification by MyCoolSript " ,
283
+ "# END: snappy_detect_line modification by MyCoolScript " ,
284
284
"target_include_directories(leveldb" ,
285
- "# BEGIN: leveldb_include_start modification by MyCoolSript " ,
285
+ "# BEGIN: leveldb_include_start modification by MyCoolScript " ,
286
286
"PRIVATE" ,
287
287
"a/b" ,
288
288
"c/d" ,
289
- "# END: leveldb_include_start modification by MyCoolSript " ,
289
+ "# END: leveldb_include_start modification by MyCoolScript " ,
290
290
"PUBLIC" ,
291
291
"path1" ,
292
292
")" ,
293
- "# BEGIN: leveldb_snappy_link_line modification by MyCoolSript " ,
293
+ "# BEGIN: leveldb_snappy_link_line modification by MyCoolScript " ,
294
294
"# target_link_libraries(leveldb snappy)" ,
295
295
"target_link_libraries(leveldb Snappy::Snappy)" ,
296
- "# END: leveldb_snappy_link_line modification by MyCoolSript " ,
296
+ "# END: leveldb_snappy_link_line modification by MyCoolScript " ,
297
297
])
298
298
299
299
def test_idempotence (self ):
@@ -308,14 +308,14 @@ def test_idempotence(self):
308
308
309
309
patcher1 = leveldb_patch .CMakeListsPatcher (
310
310
lines ,
311
- script_name = "MyCoolSript " ,
311
+ script_name = "MyCoolScript " ,
312
312
snappy_source_dir = pathlib .Path ("a/b" ),
313
313
snappy_binary_dir = pathlib .Path ("c/d" ),
314
314
)
315
315
patched_lines1 = tuple (patcher1 .patch ())
316
316
patcher2 = leveldb_patch .CMakeListsPatcher (
317
317
patched_lines1 ,
318
- script_name = "MyCoolSript " ,
318
+ script_name = "MyCoolScript " ,
319
319
snappy_source_dir = pathlib .Path ("a/b" ),
320
320
snappy_binary_dir = pathlib .Path ("c/d" ),
321
321
)
0 commit comments