Skip to content

Commit 572a6cc

Browse files
committed
cmd/cue/cmd: add test case for embedding a pattern with an explicit dot file
We'll fix this case in a subsequent CL. For #3889. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I4df9744ae04882602e74e605ef04eb8003d21efd Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1213642 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
1 parent acc06c5 commit 572a6cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmd/cue/cmd/testdata/script/embed.txtar

+5-2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ special: {
5555
// These are all valid.
5656
underscoreFile: _ @embed(file="y/_test.json")
5757
dotFile: _ @embed(file="y/.test.json")
58+
dotFileExplicit: _ @embed(glob="y/.*.json", type=yaml)
5859
dotdotFile: _ @embed(file="..dotdot.json")
5960
underscoreDir: _ @embed(file="_y/test.json")
6061
dotDir: _ @embed(file=".y/test.json")
@@ -244,6 +245,7 @@ special: {
244245
dotFile: {
245246
z: 46
246247
}
248+
dotFileExplicit: {}
247249
dotdotFile: {
248250
dotdot: true
249251
}
@@ -311,8 +313,9 @@ j: '''
311313
'''
312314
special: {
313315
// These are all valid.
314-
underscoreFile: z: 45
315-
dotFile: z: 46
316+
underscoreFile: z: 45
317+
dotFile: z: 46
318+
dotFileExplicit: {}
316319
dotdotFile: dotdot: true
317320
underscoreDir: z: 47
318321
dotDir: z: 48

0 commit comments

Comments
 (0)