Unnamed: 0
int64 0
0
| repo_id
stringlengths 5
186
| file_path
stringlengths 15
223
| content
stringlengths 1
32.8M
⌀ |
---|---|---|---|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-12.test | # RUN: yaml-bench -canonical %s
block: # Block
# mapping
key: value
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/utf8-implicit.test | # RUN: yaml-bench -canonical %s
--- implicit UTF-8
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/duplicate-key.former-loader-error.test | # RUN: yaml-bench -canonical %s
---
foo: bar
foo: baz
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-04.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
#
# We don't currently look at the content of literal tags.
# CHECK: error: Unknown tag handle
- !<!> foo
- !<$:?> bar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/null.test | # RUN: yaml-bench -canonical %s
-
- ~
- null
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-32.test | # RUN: yaml-bench -canonical %s
>
folded
line
next
line
* bullet
* list
last
line
# Comment
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/invalid-single-quote-bug.test | # RUN: yaml-bench -canonical %s
- "foo 'bar'"
- "foo\n'bar'"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-13.test | # RUN: yaml-bench -canonical %s
"Text containing
both space and
tab characters"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-18.test | # RUN: yaml-bench -canonical %s
plain:
This unquoted scalar
spans many lines.
quoted: "So does this
quoted scalar.\n"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-01.test | # RUN: yaml-bench -canonical %s
%FOO bar baz # Should be ignored
# with a warning.
--- "foo"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-19.test | # RUN: yaml-bench -canonical %s
canonical: 12345
decimal: +12,345
sexagesimal: 3:25:45
octal: 014
hexadecimal: 0xC
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-07.test | # RUN: yaml-bench -canonical %s
literal: |
text
folded: >
text
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-15.test | # RUN: yaml-bench -canonical %s
- # Empty plain scalar
- ? foo
:
?
: bar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-04.test | # RUN: yaml-bench -canonical %s
sequence: [ one, two, ]
mapping: { sky: blue, sea: green }
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-25.test | # RUN: yaml-bench -canonical %s | FileCheck %s
# CHECK: !!str "literal\n\ttext\n"
| # Simple block scalar
literal
text
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-08.test | # RUN: yaml-bench -canonical %s
---
foo:
"bar
baz"
---
"foo
bar"
---
foo
bar
--- |
foo
...
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/LICENSE.txt | Copyright (c) 2006 Kirill Simonov
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-16.test | # RUN: yaml-bench -canonical %s
name: Mark McGwire
accomplishment: >
Mark set a major league
home run record in 1998.
stats: |
65 Home Runs
0.278 Batting Average
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-06-05.test | # RUN: yaml-bench -canonical %s
{ first: Sammy, last: Sosa }:
# Statistics:
hr: # Home runs
65
avg: # Average
0.278
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-merge.test | # RUN: yaml-bench -canonical %s
---
- &CENTER { x: 1, 'y': 2 }
- &LEFT { x: 0, 'y': 2 }
- &BIG { r: 10 }
- &SMALL { r: 1 }
# All the following maps are equal:
- # Explicit keys
x: 1
'y': 2
r: 10
label: center/big
- # Merge one map
<< : *CENTER
r: 10
label: center/big
- # Merge multiple maps
<< : [ *CENTER, *BIG ]
label: center/big
- # Override
<< : [ *BIG, *LEFT, *SMALL ]
x: 1
label: center/big
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-12.test | # RUN: yaml-bench -canonical %s
---
# products purchased
- item : Super Hoop
quantity: 1
- item : Basketball
quantity: 4
- item : Big Shoes
quantity: 1
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-30.test | # RUN: yaml-bench -canonical %s
>
folded
line
next
line
* bullet
* list
last
line
# Comment
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-01.test | # RUN: yaml-bench -canonical %s
"simple key" : {
"also simple" : value,
? "not a
simple key" : "any
value"
}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-09.test | # RUN: yaml-bench -canonical %s
---
scalars:
plain: !!str some text
quoted:
single: 'some text'
double: "some text"
collections:
sequence: !!seq [ !!str entry,
# Mapping entry:
key: value ]
mapping: { key: value }
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-14.test | # RUN: yaml-bench -canonical %s
plain key: # empty value
"quoted key":
- one # explicit next-line
- two # block value
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-11.test | # RUN: yaml-bench -canonical %s
[
? explicit key1 : explicit value,
? explicit key2 : , # Explicit empty
? explicit key3, # Implicit empty
simple key1 : explicit value,
simple key2 : , # Explicit empty
]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-03.test | # RUN: yaml-bench -canonical %s
american:
- Boston Red Sox
- Detroit Tigers
- New York Yankees
national:
- New York Mets
- Chicago Cubs
- Atlanta Braves
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-02.test | # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
"as space
trimmed
specific
escaped \
none"
# FIXME: The string below should actually be
# "as space trimmed\nspecific\nescaped\tnone", but the parser currently has
# a bug when parsing multiline quoted strings.
# CHECK: !!str "as space{{(\\n)+}} trimmed{{(\\n)+}} specific{{(\\n)+}} escaped\t none"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-03.test | # RUN: yaml-bench -canonical %s
!<tag:yaml.org,2002:str> foo :
!<!bar> baz
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/bool.test | # RUN: yaml-bench -canonical %s
- yes
- NO
- True
- on
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-09.test | # RUN: yaml-bench -canonical %s
%YAML 1.1
--- text
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/duplicate-mapping-key.former-loader-error.test | # RUN: yaml-bench -canonical %s
---
&anchor foo:
foo: bar
*anchor: duplicate key
baz: bat
*anchor: duplicate key
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-01-utf8.test | # RUN: yaml-bench -canonical %s
# Comment only.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-05.test | # RUN: yaml-bench -canonical %s
- [name , hr, avg ]
- [Mark McGwire, 65, 0.278]
- [Sammy Sosa , 63, 0.288]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-09.test | # RUN: yaml-bench -canonical %s
---
hr: # 1998 hr ranking
- Mark McGwire
- Sammy Sosa
rbi:
# 1998 rbi ranking
- Sammy Sosa
- Ken Griffey
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-03.test | # RUN: yaml-bench -canonical %s
sequence:
- one
- two
mapping:
? sky
: blue
? sea : green
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-15.test | # RUN: yaml-bench -canonical %s
- sun: yellow
- ? earth: blue
: moon: white
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-11.test | # RUN: yaml-bench -canonical %s
# A stream may contain
# no documents.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-04.test | # RUN: yaml-bench -canonical %s | FileCheck %s
%TAG !yaml! tag:yaml.org,2002:
---
!yaml!str "foo"
#CHECK: !!str "foo"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-12.test | # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
#
# FIXME: This test should actually fail. Yaml-bench should report an error
# that a tab is being used to indent a plain scalar at line 15.
# We don't currently reject tabs as indentation.
# Tabs do's and don'ts:
# comment:
quoted: "Quoted "
block: |
void main() {
printf("Hello, world!\n");
}
elsewhere: # separation
indentation, in plain scalar
# CHECK: !!str "Quoted\t\t"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-02.test | # RUN: yaml-bench -canonical %s
hr: 65 # Home runs
avg: 0.278 # Batting average
rbi: 147 # Runs Batted In
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-06.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
#
# We don't currently validate tags.
# CHECK: error: Unknown tag handle
%TAG !o! tag:ben-kiki.org,2000:
---
- !$a!b foo
- !o! bar
- !h!type baz
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-10.test | # RUN: yaml-bench -canonical %s
'first
inner
last'
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-05.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
#
# We don't currently parse TAG directives.
# CHECK: error: Unexpected token
%TAG ! !foo
%TAG ! !foo
bar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-custom.test | # RUN: yaml-bench -canonical %s
---
- !tag1
x: 1
- !tag1
x: 1
'y': 2
z: 3
- !tag2
10
- !tag2
=: 10
'y': 20
z: 30
- !tag3
x: 1
- !tag3
x: 1
'y': 2
z: 3
- !tag3
=: 1
'y': 2
z: 3
- !foo
my-parameter: foo
my-another-parameter: [1,2,3]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-12.test | # RUN: yaml-bench -canonical %s
[
Without properties,
&anchor "Anchored",
!!str 'Tagged',
*anchor, # Alias node
!!str , # Empty plain scalar
'', # Empty plain scalar
]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-11.test | # RUN: yaml-bench -canonical %s
? - Detroit Tigers
- Chicago cubs
:
- 2001-07-23
? [ New York Yankees,
Atlanta Braves ]
: [ 2001-07-02, 2001-08-12,
2001-08-14 ]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-24.test | # RUN: yaml-bench -canonical %s | FileCheck %s
%TAG ! tag:clarkevans.com,2002:
--- !shape
# Use the ! handle for presenting
# tag:clarkevans.com,2002:circle
- !circle
center: &ORIGIN {x: 73, y: 129}
radius: 7
- !line
start: *ORIGIN
finish: { x: 89, y: 102 }
- !label
start: *ORIGIN
color: 0xFFEEBB
text: Pretty vector drawing.
#CHECK: !<tag:clarkevans.com,2002:shape>
#CHECK: !<tag:clarkevans.com,2002:circle>
#CHECK: !<tag:clarkevans.com,2002:line>
#CHECK: !<tag:clarkevans.com,2002:label>
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-26.test | # RUN: yaml-bench -canonical %s | FileCheck %s
# CHECK: !!str "\n\nliteral\n\ntext\n"
|
literal
text
# Comment
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-13.test | # RUN: yaml-bench -canonical %s
simple key : {
also simple : value,
? not a
simple key : any
value
}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-06.test | # RUN: yaml-bench -canonical %s
%TAG ! !foo
%TAG !yaml! tag:yaml.org,2002:
---
- !bar "baz"
- !yaml!str "string"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-15.test | # RUN: yaml-bench -canonical %s
---
"---" : foo
...: bar
---
[
---,
...,
{
? ---
: ...
}
]
...
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/timestamp.test | # RUN: yaml-bench -canonical %s
- 2001-12-15T02:59:43.1Z
- 2001-12-14t21:59:43.10-05:00
- 2001-12-14 21:59:43.10 -5
- 2001-12-15 2:59:43.10
- 2002-12-14
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-14.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
#
# CHECK: error: Expected a line break after block scalar header
---
--- ||| : foo
... >>>: bar
---
[
---
,
... ,
{
--- :
... # Nested
}
]
...
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/empty-document-bug.test | # RUN: yaml-bench -canonical %s
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-33.test | # RUN: yaml-bench -canonical %s
>
folded
line
next
line
* bullet
* list
last
line
# Comment
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-10.test | # RUN: yaml-bench -canonical %s
{
? explicit key1 : explicit value,
? explicit key2 : , # Explicit empty
? explicit key3, # Empty value
simple key1 : explicit value,
simple key2 : , # Explicit empty
simple key3, # Empty value
}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/run-parser-crash-bug.test | # RUN: yaml-bench -canonical %s
---
- Harry Potter and the Prisoner of Azkaban
- Harry Potter and the Goblet of Fire
- Harry Potter and the Order of the Phoenix
---
- Memoirs Found in a Bathtub
- Snow Crash
- Ghost World
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-20.test | # RUN: yaml-bench -canonical %s | FileCheck %s
# CHECK: !!str "detected\n"
# CHECK: !!str "\n\n# detected\n"
# CHECK: !!str " explicit\n"
# CHECK: !!str "\t\ndetected\n"
- |
detected
- >
# detected
- |1
explicit
- >
detected
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-seq.test | # RUN: yaml-bench -canonical %s
# Ordered sequence of nodes
Block style: !!seq
- Mercury # Rotates - no light/dark sides.
- Venus # Deadliest. Aptly named.
- Earth # Mostly dirt.
- Mars # Seems empty.
- Jupiter # The king.
- Saturn # Pretty.
- Uranus # Where the sun hardly shines.
- Neptune # Boring. No rings.
- Pluto # You call this a planet?
Flow style: !!seq [ Mercury, Venus, Earth, Mars, # Rocks
Jupiter, Saturn, Uranus, Neptune, # Gas
Pluto ] # Overrated
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-set.test | # RUN: yaml-bench -canonical %s
# Explicitly typed set.
baseball players: !!set
? Mark McGwire
? Sammy Sosa
? Ken Griffey
# Flow style
baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-02.test | # RUN: yaml-bench -canonical %s
%YAML 1.2 # Attempt parsing
# with a warning
---
"foo"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/single-dot-is-not-float-bug.test | # RUN: yaml-bench -canonical %s
.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-08.test | # RUN: yaml-bench -canonical %s
---
time: 20:03:20
player: Sammy Sosa
action: strike (miss)
...
---
time: 20:03:47
player: Sammy Sosa
action: grand slam
...
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-08.test | # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
#
# FIXME: This test should fail. Yaml bench should report an error that a simple
# key spans across multiple lines and that another simple key is longer than
# 1024 characters.
{
multi-line
simple key : value,
very long ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................(>1KB)................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... key: value
}
# CHECK: ? !!str "very long
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-11.test | # RUN: yaml-bench -canonical %s
First occurrence: &anchor Value
Second occurrence: *anchor
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/value.test | # RUN: yaml-bench -canonical %s
- =
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-10.test | # RUN: yaml-bench -canonical %s
block styles:
scalars:
literal: !!str |
#!/usr/bin/perl
print "Hello, world!\n";
folded: >
This sentence
is false.
collections: !!map
sequence: !!seq # Entry:
- entry # Plain
# Mapping entry:
- key: value
mapping:
key: value
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-int.test | # RUN: yaml-bench -canonical %s
canonical: 685230
decimal: +685_230
octal: 02472256
hexadecimal: 0x_0A_74_AE
binary: 0b1010_0111_0100_1010_1110
sexagesimal: 190:20:30
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-21.test | # RUN: yaml-bench -canonical %s
null: ~
true: y
false: n
string: '12345'
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-04.test | # RUN: yaml-bench -canonical %s
"first
inner 1
\ inner 2 \
last"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-07.test | # RUN: yaml-bench -canonical %s
'simple key' : {
'also simple' : value,
? 'not a
simple key' : 'any
value'
}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-13.test | # RUN: yaml-bench -canonical %s
{
? foo :,
? : bar,
}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-08.test | # RUN: yaml-bench -canonical %s
single: 'text'
double: "text"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/merge.test | # RUN: yaml-bench -canonical %s
- <<
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-07b.test | # RUN: yaml-bench -canonical %s
# Migrated to global:
%TAG ! tag:ben-kiki.org,2000:app/
---
!foo "bar"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-09.test | # RUN: yaml-bench -canonical %s
---
foo
...
# Repeated end marker.
...
---
bar
# No end marker.
---
baz
...
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-map.test | # RUN: yaml-bench -canonical %s
# Unordered set of key: value pairs.
Block style: !!map
Clark : Evans
Brian : Ingerson
Oren : Ben-Kiki
Flow style: !!map { Clark: Evans, Brian: Ingerson, Oren: Ben-Kiki }
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-11.test | # RUN: yaml-bench -canonical %s
|
Generic line break (no glyph)
Generic line break (glyphed)
Line separator
Paragraph separator
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-value.test | # RUN: yaml-bench -canonical %s
--- # Old schema
link with:
- library1.dll
- library2.dll
--- # New schema
link with:
- = : library1.dll
version: 1.2
- = : library2.dll
version: 2.3
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-07.test | # RUN: yaml-bench -canonical %s
# Assuming conventional resolution:
- "12"
- 12
- ! 12
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-04.test | # RUN: yaml-bench -canonical %s
-
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/str.test | # RUN: yaml-bench -canonical %s
- abcd
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/resolver.test | # RUN: yaml-bench -canonical %s
---
"this scalar should be selected"
---
key11: !foo
key12:
is: [selected]
key22:
key13: [not, selected]
key23: [not, selected]
key32:
key31: [not, selected]
key32: [not, selected]
key33: {not: selected}
key21: !bar
- not selected
- selected
- not selected
key31: !baz
key12:
key13:
key14: {selected}
key23:
key14: [not, selected]
key33:
key14: {selected}
key24: {not: selected}
key22:
- key14: {selected}
key24: {not: selected}
- key14: {selected}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-08.test | # RUN: yaml-bench -canonical %s
# Explicitly specify default settings:
%TAG ! !
%TAG !! tag:yaml.org,2002:
# Named handles have no default:
%TAG !o! tag:ben-kiki.org,2000:
---
- !foo "bar"
- !!str "string"
- !o!type "baz"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-07.test | # RUN: yaml-bench -canonical %s
# Ranking of 1998 home runs
---
- Mark McGwire
- Sammy Sosa
- Ken Griffey
# Team ranking
---
- Chicago Cubs
- St Louis Cardinals
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-01.test | # RUN: yaml-bench -canonical %s
- Mark McGwire
- Sammy Sosa
- Ken Griffey
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-03.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
%YAML 1.1
%YAML 1.1
foo
# CHECK: error
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-06-01.test | # RUN: yaml-bench -canonical %s
# Leading comment line spaces are
# neither content nor indentation.
Not indented:
By one space: |
By four
spaces
Flow style: [ # Leading spaces
By two, # in flow style
Also by two, # are neither
# Tabs are not allowed:
# Still by two # content nor
Still by two # content nor
] # indentation.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-17.test | # RUN: yaml-bench -canonical %s
first line
more line
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-06.test | # RUN: yaml-bench -canonical %s
'here''s to "quotes"'
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/scan-document-end-bug.test | # RUN: yaml-bench -canonical %s
# Ticket #4
---
...
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/TableGen/Include.inc | // This is used by the Include.td test
def InInclude;
|
0 | repos/DirectXShaderCompiler/test/tools | repos/DirectXShaderCompiler/test/tools/llvm-cov/binary-formats.c | // Checks for reading various formats.
// CHECK: 100| [[@LINE+1]]|int main
int main(int argc, const char *argv[]) {}
// RUN: llvm-profdata merge %S/Inputs/binary-formats.proftext -o %t.profdata
// RUN: llvm-cov show %S/Inputs/binary-formats.macho32l -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s
// RUN: llvm-cov show %S/Inputs/binary-formats.macho64l -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s
// RUN: llvm-cov show %S/Inputs/binary-formats.macho32b -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s
|
0 | repos/DirectXShaderCompiler/test/tools | repos/DirectXShaderCompiler/test/tools/llvm-cov/showLineExecutionCounts.cpp | // Basic handling of line counts.
// RUN: llvm-profdata merge %S/Inputs/lineExecutionCounts.proftext -o %t.profdata
// before any coverage // WHOLE-FILE: | [[@LINE]]|// before
// FILTER-NOT: | [[@LINE-1]]|// before
int main() { // CHECK: 161| [[@LINE]]|int main(
int x = 0; // CHECK: 161| [[@LINE]]| int x
// CHECK: 161| [[@LINE]]|
if (x) { // CHECK: 0| [[@LINE]]| if (x)
x = 0; // CHECK: 0| [[@LINE]]| x = 0
} else { // CHECK: 161| [[@LINE]]| } else
x = 1; // CHECK: 161| [[@LINE]]| x = 1
} // CHECK: 161| [[@LINE]]| }
// CHECK: 161| [[@LINE]]|
for (int i = 0; i < 100; ++i) { // CHECK: 16.2k| [[@LINE]]| for (
x = 1; // CHECK: 16.1k| [[@LINE]]| x = 1
} // CHECK: 16.1k| [[@LINE]]| }
// CHECK: 161| [[@LINE]]|
x = x < 10 ? x + 1 : x - 1; // CHECK: 161| [[@LINE]]| x =
x = x > 10 ? // CHECK: 161| [[@LINE]]| x =
x - 1: // CHECK: 0| [[@LINE]]| x
x + 1; // CHECK: 161| [[@LINE]]| x
// CHECK: 161| [[@LINE]]|
return 0; // CHECK: 161| [[@LINE]]| return
} // CHECK: 161| [[@LINE]]|}
// after coverage // WHOLE-FILE: | [[@LINE]]|// after
// FILTER-NOT: | [[@LINE-1]]|// after
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=WHOLE-FILE %s
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -filename-equivalence -name=main %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s
|
0 | repos/DirectXShaderCompiler/test/tools | repos/DirectXShaderCompiler/test/tools/llvm-cov/llvm-cov.test | # Tests for compatibility between llvm-cov and gcov. These work by
# comparing llvm-cov against reference outputs generated by gcov 4.2.
# Test fails on Windows where internal shell is used due to path separator
# mismatches.
REQUIRES: shell
RUN: rm -rf %t
RUN: mkdir %t
RUN: cd %t
RUN: cp %p/Inputs/test* .
# Basic behaviour with no flags
RUN: llvm-cov gcov test.c | diff -u test_no_options.output -
RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
RUN: diff -aub test_no_options.h.gcov test.h.gcov
# Same, but specifying the object directory
RUN: mkdir -p %t/objdir
RUN: cp test.gcno test.gcda %t/objdir
RUN: llvm-cov gcov -o objdir test.c | diff -u test_no_options.output -
RUN: diff -aub test_objdir.cpp.gcov test.cpp.gcov
RUN: diff -aub test_objdir.h.gcov test.h.gcov
# Specifying an object file
RUN: llvm-cov gcov -o objdir/test.o test.c | diff -u test_no_options.output -
RUN: diff -aub test_objdir.cpp.gcov test.cpp.gcov
RUN: diff -aub test_objdir.h.gcov test.h.gcov
# Specifying an object file that could be ambiguous with a directory
RUN: llvm-cov gcov -o objdir/test test.c | diff -u test_no_options.output -
RUN: diff -aub test_objdir.cpp.gcov test.cpp.gcov
RUN: diff -aub test_objdir.h.gcov test.h.gcov
# With gcov output disabled
RUN: llvm-cov gcov -n test.c | diff -u test_no_output.output -
# Missing source files. This test is fragile, as it depends on being
# run before we copy some sources into place in the next test.
RUN: llvm-cov gcov test_paths.cpp 2>/dev/null | diff -u test_missing.output -
RUN: diff -aub test_missing.cpp.gcov test.cpp.gcov
RUN: diff -aub test_missing.h.gcov test.h.gcov
# Preserve paths. This mangles the output filenames.
RUN: mkdir -p %t/srcdir/nested_dir
RUN: cp test.cpp test.h %t/srcdir
RUN: llvm-cov gcov -p test_paths.cpp | diff -u test_preserve_paths.output -
RUN: diff -aub test_paths.cpp.gcov srcdir#nested_dir#^#test.cpp.gcov
RUN: diff -aub test_paths.h.gcov srcdir#nested_dir#^#test.h.gcov
# Don't preserve paths. Same results as preserve paths, but no mangling.
RUN: llvm-cov gcov test_paths.cpp | diff -u test_no_preserve_paths.output -
RUN: diff -aub test_paths.cpp.gcov test.cpp.gcov
RUN: diff -aub test_paths.h.gcov test.h.gcov
# Long file names.
RUN: llvm-cov gcov -l test_paths.cpp | diff -u test_long_file_names.output -
RUN: diff -aub test_paths.cpp.gcov test_paths.cpp##test.cpp.gcov
RUN: diff -aub test_paths.h.gcov test_paths.cpp##test.h.gcov
# Long file names and preserve paths.
RUN: llvm-cov gcov -lp -gcno test_paths.gcno -gcda test_paths.gcda srcdir/../test_paths.cpp | diff -u test_long_paths.output -
RUN: diff -aub test_paths.cpp.gcov srcdir#^#test_paths.cpp##srcdir#nested_dir#^#test.cpp.gcov
RUN: diff -aub test_paths.h.gcov srcdir#^#test_paths.cpp##srcdir#nested_dir#^#test.h.gcov
# Function summaries. This changes stdout, but not the gcov files.
RUN: llvm-cov gcov test.c -f | diff -u test_-f.output -
RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
RUN: diff -aub test_no_options.h.gcov test.h.gcov
# All blocks. This doesn't affect stdout, only the gcov files.
RUN: llvm-cov gcov test.c -a | diff -u test_no_options.output -
RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
RUN: diff -aub test_-a.h.gcov test.h.gcov
# Branch probabilities.
RUN: llvm-cov gcov test.c -a -b | diff -u test_-b.output -
RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
# Function summaries including branch probabilities.
# FIXME: We don't correctly handle calls when -b and -f are used
# together, so our output differs from gcov. Remove the 'not' from
# this test once this is fixed.
RUN: llvm-cov gcov test.c -a -b -f | not diff -u test_-b_-f.output - >/dev/null
RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
# Summarize unconditional branches too.
RUN: llvm-cov gcov test.c -a -b -u | diff -u test_-b.output -
RUN: diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov
RUN: diff -aub test_-a_-b_-u.h.gcov test.h.gcov
# Absolute counts for branches.
RUN: llvm-cov gcov test.c -a -b -c -u | diff -u test_-b.output -
RUN: diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov
RUN: diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov
# Missing gcda file just gives 0 counts.
RUN: llvm-cov gcov test.c -gcda=no_such_gcda_file | diff -u test_no_gcda.output -
RUN: diff -aub test_no_gcda.cpp.gcov test.cpp.gcov
RUN: diff -aub test_no_gcda.h.gcov test.h.gcov
# Invalid gcno file.
RUN: llvm-cov gcov test.c -gcno=test_read_fail.gcno
# Bad file checksum on gcda.
RUN: llvm-cov gcov test.c -gcda=test_file_checksum_fail.gcda
# Bad function checksum on gcda
RUN: llvm-cov gcov test.c -gcda=test_func_checksum_fail.gcda
# Has arcs from exit blocks
RUN: llvm-cov gcov test_exit_block_arcs.c 2>&1 | FileCheck %s -check-prefix=EXIT_BLOCK_ARCS
EXIT_BLOCK_ARCS: (main) has arcs from exit block.
XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
|
0 | repos/DirectXShaderCompiler/test/tools | repos/DirectXShaderCompiler/test/tools/llvm-cov/showHighlightedRanges.cpp | // RUN: llvm-cov show %S/Inputs/highlightedRanges.covmapping -instr-profile %S/Inputs/highlightedRanges.profdata -dump -filename-equivalence %s 2>&1 | FileCheck %s
void func() {
return;
int i = 0; // CHECK: Highlighted line [[@LINE]], 3 -> ?
} // CHECK: Highlighted line [[@LINE]], 1 -> 2
void func2(int x) {
if(x > 5) {
while(x >= 9) {
return;
--x; // CHECK: Highlighted line [[@LINE]], 7 -> ?
} // CHECK: Highlighted line [[@LINE]], 1 -> 6
int i = 0; // CHECK: Highlighted line [[@LINE]], 5 -> ?
} // CHECK: Highlighted line [[@LINE]], 1 -> 4
}
void test() {
int x = 0;
if (x) { // CHECK: Highlighted line [[@LINE]], 10 -> ?
x = 0; // CHECK: Highlighted line [[@LINE]], 1 -> ?
} else { // CHECK: Highlighted line [[@LINE]], 1 -> 4
x = 1;
}
// CHECK: Highlighted line [[@LINE+1]], 26 -> 29
for (int i = 0; i < 0; ++i) { // CHECK: Highlighted line [[@LINE]], 31 -> ?
x = 1; // CHECK: Highlighted line [[@LINE]], 1 -> ?
} // CHECK: Highlighted line [[@LINE]], 1 -> 4
x = x < 10 ? x +
1
: x - 1; // CHECK: Highlighted line [[@LINE]], 16 -> 21
x = x > 10 ? x + // CHECK: Highlighted line [[@LINE]], 16 -> ?
1 // CHECK: Highlighted line [[@LINE]], 1 -> 17
: x - 1;
}
int main() {
test();
func();
func2(9);
return 0;
}
|
0 | repos/DirectXShaderCompiler/test/tools | repos/DirectXShaderCompiler/test/tools/llvm-cov/showRegionMarkers.cpp | // RUN: llvm-profdata merge %S/Inputs/regionMarkers.proftext -o %t.profdata
int main() { // CHECK: Marker at [[@LINE]]:12 = 1.11M
int x = 0;
if (x) { // CHECK: Marker at [[@LINE]]:10 = 0
x = 0;
} else { // CHECK: Marker at [[@LINE]]:10 = 1.11M
x = 1;
}
// CHECK: Marker at [[@LINE+2]]:19 = 112M
// CHECK: Marker at [[@LINE+1]]:28 = 111M
for (int i = 0; i < 100; ++i) { // CHECK: Marker at [[@LINE]]:33 = 111M
x = 1;
}
// CHECK: Marker at [[@LINE+1]]:16 = 1.11M
x = x < 10 ? x + 1 : x - 1; // CHECK: Marker at [[@LINE]]:24 = 0
x = x > 10 ?
x - 1: // CHECK: Marker at [[@LINE]]:9 = 0
x + 1; // CHECK: Marker at [[@LINE]]:9 = 1.11M
return 0;
}
// RUN: llvm-cov show %S/Inputs/regionMarkers.covmapping -instr-profile %t.profdata -show-regions -dump -filename-equivalence %s 2>&1 | FileCheck %s
|
0 | repos/DirectXShaderCompiler/test/tools | repos/DirectXShaderCompiler/test/tools/llvm-cov/showExpansions.cpp | // RUN: llvm-cov show %S/Inputs/showExpansions.covmapping -instr-profile %S/Inputs/showExpansions.profdata -dump -show-expansions -filename-equivalence %s 2>&1 | FileCheck %s
#define DO_SOMETHING_ELSE() \
do { \
} while (0)
#define ANOTHER_THING() \
do { \
if (0) { \
} \
} while (0)
#define DO_SOMETHING(x) \
do { \
if (x) \
DO_SOMETHING_ELSE(); \
else \
ANOTHER_THING(); \
} while (0)
// CHECK-DAG: Expansion at line [[@LINE-4]], 7 -> 24
// CHECK-DAG: Expansion at line [[@LINE-3]], 7 -> 20
int main(int argc, const char *argv[]) {
for (int i = 0; i < 100; ++i)
DO_SOMETHING(i); // CHECK-DAG: Expansion at line [[@LINE]], 5 -> 17
return 0;
}
|
0 | repos/DirectXShaderCompiler/test/tools | repos/DirectXShaderCompiler/test/tools/llvm-cov/range_based_for.cpp | // Make sure that compiler-added local variables (whose line number is zero)
// don't crash llvm-cov.
// We need shell for cd
// REQUIRES: shell
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: cd %t
// RUN: cp %s %p/Inputs/range_based_for.gc* .
// RUN: llvm-cov gcov range_based_for.cpp | FileCheck %s --check-prefix=STDOUT
// STDOUT: File 'range_based_for.cpp'
// STDOUT: Lines executed:100.00% of 5
// STDOUT: range_based_for.cpp:creating 'range_based_for.cpp.gcov'
// RUN: FileCheck %s --check-prefix=GCOV < %t/range_based_for.cpp.gcov
// GCOV: -: 0:Runs:1
// GCOV: -: 0:Programs:1
int main(int argc, const char *argv[]) { // GCOV: 1: [[@LINE]]:int main(
int V[] = {1, 2}; // GCOV: 1: [[@LINE]]: int V[]
for (int &I : V) { // GCOV: 10: [[@LINE]]: for (
} // GCOV: 2: [[@LINE]]: }
return 0; // GCOV: 1: [[@LINE]]: return
} // GCOV: -: [[@LINE]]:}
// llvm-cov doesn't work on big endian yet
// XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.