Skip to content

Commit

Permalink
cmd/cue: add test for filetype attributes
Browse files Browse the repository at this point in the history
Currently, arbitrary key-value pairs can be specified in a filetype,
but this isn't ideal behavior.

Add a test for this, to be fixed in a subsequent CL.

For #3283.

Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I2d18509e116f427a8eca19899329df0e68ab2255
Dispatch-Trailer: {"type":"trybot","CL":1200900,"patchset":3,"ref":"refs/changes/00/1200900/3","targetBranch":"master"}
  • Loading branch information
rogpeppe authored and cueckoo committed Sep 10, 2024
1 parent bcea3c8 commit ec8df5b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/cue/cmd/testdata/script/unknown_filetype_attrval.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Check that we cannot specify an arbitary unknown key-value pair
# in a filetype.
# TODO fix this test.

exec cue export cue+foo=bar: x.cue
# cmp stderr expect-stderr
-- x.cue --
true
-- expect-stderr --
unknown filetype foo

0 comments on commit ec8df5b

Please sign in to comment.