This file is indexed.

/usr/share/augeas/lenses/dist/tests/test_quote.aug is in augeas-lenses 1.2.0-0ubuntu1.3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
(*
Module: Test_Quote
  Provides unit tests and examples for the <Quote> lens.
*)

module Test_Quote =

(* View: double *)
let double = [ label "double" . Quote.double ]

(* Test: double *)
test double get "\" this is a test\"" =
  { "double" = " this is a test" }

(* View: double_opt *)
let double_opt = [ label "double_opt" . Quote.double_opt ]

(* Test: double_opt *)
test double_opt get "\"this is a test\"" =
  { "double_opt" = "this is a test" }

(* Test: double_opt *)
test double_opt get "this is a test" =
  { "double_opt" = "this is a test" }

(* Test: double_opt
   Value cannot start with a space *)
test double_opt get " this is a test" = *

(* View: single *)
let single = [ label "single" . Quote.single ]

(* Test: single *)
test single get "' this is a test'" =
  { "single" = " this is a test" }

(* View: single_opt *)
let single_opt = [ label "single_opt" . Quote.single_opt ]

(* Test: single_opt *)
test single_opt get "'this is a test'" =
  { "single_opt" = "this is a test" }

(* Test: single_opt *)
test single_opt get "this is a test" =
  { "single_opt" = "this is a test" }

(* Test: single_opt
   Value cannot start with a space *)
test single_opt get " this is a test" = *

(* View: any *)
let any = [ label "any" . Quote.any ]

(* Test: any *)
test any get "\" this is a test\"" =
  { "any" = " this is a test" }

(* Test: any *)
test any get "' this is a test'" =
  { "any" = " this is a test" }

(* View: any_opt *)
let any_opt = [ label "any_opt" . Quote.any_opt ]

(* Test: any_opt *)
test any_opt get "\"this is a test\"" =
  { "any_opt" = "this is a test" }

(* Test: any_opt *)
test any_opt get "'this is a test'" =
  { "any_opt" = "this is a test" }

(* Test: any_opt *)
test any_opt get "this is a test" =
  { "any_opt" = "this is a test" }

(* Test: any_opt
   Value cannot start with a space *)
test any_opt get " this is a test" = *

(* View: double_opt_allow_spc *)
let double_opt_allow_spc =
  let body = store /[^\n"]+/ in
  [ label "double" . Quote.do_dquote_opt body ]

(* Test: double_opt_allow_spc *)
test double_opt_allow_spc get " test with spaces " =
  { "double" = " test with spaces " }

(* Group: quote_spaces *)

(* View: quote_spaces *)
let quote_spaces =
  Quote.quote_spaces (label "spc")

(* Test: quote_spaces
     Unquoted value *)
test quote_spaces get "this" =
  { "spc" = "this" }

(* Test: quote_spaces
     double quoted value *)
test quote_spaces get "\"this\"" =
  { "spc" = "this" }

(* Test: quote_spaces
     single quoted value *)
test quote_spaces get "'this'" =
  { "spc" = "this" }

(* Test: quote_spaces
     unquoted value with spaces *)
test quote_spaces get "this that those" = *

(* Test: quote_spaces
     double quoted value with spaces *)
test quote_spaces get "\"this that those\"" =
  { "spc" = "this that those" }

(* Test: quote_spaces
     single quoted value with spaces *)
test quote_spaces get "'this that those'" =
  { "spc" = "this that those" }

(* Test: quote_spaces
     remove spaces from double-quoted value *)
test quote_spaces put "\"this that those\""
  after set "spc" "thisthat" =
  "\"thisthat\""

(* Test: quote_spaces
     remove spaces from single-quoted value *)
test quote_spaces put "'this that those'"
  after set "spc" "thisthat" =
  "'thisthat'"

(* Test: quote_spaces
     add spaces to unquoted value *)
test quote_spaces put "this"
  after set "spc" "this that those" =
  "\"this that those\""

(* Test: quote_spaces
     add spaces to double-quoted value *)
test quote_spaces put "\"this\""
  after set "spc" "this that those" =
  "\"this that those\""

(* Test: quote_spaces
     add spaces to single-quoted value *)
test quote_spaces put "'this'"
  after set "spc" "this that those" =
  "'this that those'"

(* Group: dquote_spaces *)

(* View: dquote_spaces *)
let dquote_spaces =
  Quote.dquote_spaces (label "spc")

(* Test: dquote_spaces
     Unquoted value *)
test dquote_spaces get "this" =
  { "spc" = "this" }

(* Test: dquote_spaces
     double quoted value *)
test dquote_spaces get "\"this\"" =
  { "spc" = "this" }

(* Test: dquote_spaces
     single quoted value *)
test dquote_spaces get "'this'" =
  { "spc" = "'this'" }

(* Test: dquote_spaces
     unquoted value with spaces *)
test dquote_spaces get "this that those" = *

(* Test: dquote_spaces
     double quoted value with spaces *)
test dquote_spaces get "\"this that those\"" =
  { "spc" = "this that those" }

(* Test: dquote_spaces
     single quoted value with spaces *)
test dquote_spaces get "'this that those'" = *

(* Test: dquote_spaces
     remove spaces from double-quoted value *)
test dquote_spaces put "\"this that those\""
  after set "spc" "thisthat" =
  "\"thisthat\""

(* Test: dquote_spaces
     add spaces to unquoted value *)
test dquote_spaces put "this"
  after set "spc" "this that those" =
  "\"this that those\""

(* Test: dquote_spaces
     add spaces to double-quoted value *)
test dquote_spaces put "\"this\""
  after set "spc" "this that those" =
  "\"this that those\""

(* Test: dquote_spaces
     add spaces to single-quoted value *)
test dquote_spaces put "'this'"
  after set "spc" "this that those" =
  "\"this that those\""

(* Group: squote_spaces *)

(* View: squote_spaces *)
let squote_spaces =
  Quote.squote_spaces (label "spc")

(* Test: squote_spaces
     Unquoted value *)
test squote_spaces get "this" =
  { "spc" = "this" }

(* Test: squote_spaces
     double quoted value *)
test squote_spaces get "\"this\"" =
  { "spc" = "\"this\"" }

(* Test: squote_spaces
     single quoted value *)
test squote_spaces get "'this'" =
  { "spc" = "this" }

(* Test: squote_spaces
     unquoted value with spaces *)
test squote_spaces get "this that those" = *

(* Test: squote_spaces
     double quoted value with spaces *)
test squote_spaces get "\"this that those\"" = *

(* Test: squote_spaces
     single quoted value with spaces *)
test squote_spaces get "'this that those'" =
  { "spc" = "this that those" }

(* Test: squote_spaces
     remove spaces from single-quoted value *)
test squote_spaces put "'this that those'"
  after set "spc" "thisthat" =
  "'thisthat'"

(* Test: squote_spaces
     add spaces to unquoted value *)
test squote_spaces put "this"
  after set "spc" "this that those" =
  "'this that those'"

(* Test: squote_spaces
     add spaces to double-quoted value *)
test squote_spaces put "\"this\""
  after set "spc" "this that those" =
  "'this that those'"

(* Test: squote_spaces
     add spaces to single-quoted value *)
test squote_spaces put "'this'"
  after set "spc" "this that those" =
  "'this that those'"

(* Group: nil cases *)

(* View: dquote_opt_nil *)
let dquote_opt_nil =
     let body = store Quote.double_opt_re
  in [ label "dquote_opt_nil" . Quote.do_dquote_opt_nil body ]?

(* Test: dquote_opt_nil *)
test dquote_opt_nil get "this" =
  { "dquote_opt_nil" = "this" }

(* Test: dquote_opt_nil *)
test dquote_opt_nil get "'this'" =
  { "dquote_opt_nil" = "'this'" }

(* Test: dquote_opt_nil *)
test dquote_opt_nil get "\"this\"" =
  { "dquote_opt_nil" = "this" }

(* Test: dquote_opt_nil *)
test dquote_opt_nil put ""
  after set "dquote_opt_nil" "this" =
  "this"

(* Test: dquote_opt_nil *)
test dquote_opt_nil put "\"this\""
  after set "dquote_opt_nil" "this" =
  "\"this\""

(* Test: dquote_opt_nil *)
test dquote_opt_nil put "'this'"
  after set "dquote_opt_nil" "this" =
  "this"

(* View: squote_opt_nil *)
let squote_opt_nil =
     let body = store Quote.single_opt_re
  in [ label "squote_opt_nil" . Quote.do_squote_opt_nil body ]?

(* Test: squote_opt_nil *)
test squote_opt_nil get "this" =
  { "squote_opt_nil" = "this" }

(* Test: squote_opt_nil *)
test squote_opt_nil get "'this'" =
  { "squote_opt_nil" = "this" }

(* Test: squote_opt_nil *)
test squote_opt_nil get "\"this\"" =
  { "squote_opt_nil" = "\"this\"" }

(* Test: squote_opt_nil *)
test squote_opt_nil put ""
  after set "squote_opt_nil" "this" =
  "this"

(* Test: squote_opt_nil *)
test squote_opt_nil put "\"this\""
  after set "squote_opt_nil" "this" =
  "this"

(* Test: squote_opt_nil *)
test squote_opt_nil put "\"this\""
  after set "squote_opt_nil" "this" =
  "this"

(* View: quote_opt_nil *)
let quote_opt_nil =
     let body = store Quote.any_opt_re
  in [ label "quote_opt_nil" . Quote.do_quote_opt_nil body ]?

(* Test: quote_opt_nil *)
test quote_opt_nil get "this" =
  { "quote_opt_nil" = "this" }

(* Test: quote_opt_nil *)
test quote_opt_nil get "'this'" =
  { "quote_opt_nil" = "this" }

(* Test: quote_opt_nil *)
test quote_opt_nil get "\"this\"" =
  { "quote_opt_nil" = "this" }

(* Test: quote_opt_nil *)
test quote_opt_nil put ""
  after set "quote_opt_nil" "this" =
  "this"

(* Test: quote_opt_nil *)
test quote_opt_nil put "\"this\""
  after set "quote_opt_nil" "this" =
  "\"this\""

(* Test: quote_opt_nil *)
test quote_opt_nil put "'this'"
  after set "quote_opt_nil" "this" =
  "'this'"