Debian Codegraph @

tests/API/OVAL/unittests/oval-def_count_function.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#windows windows-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:win-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2012-09-05T11:46:00-04:00</oval:timestamp>
6 </generator>
7 <definitions>
8 <definition id="oval:org.mitre.oval.test:def:65" version="1" class="miscellaneous">
9 <metadata>
10 <title>Evaluate to true if the count function is properly supported</title>
11 <description>This definition is intended to evaluate to true if the interpreter properly supports the count function.</description>
12 </metadata>
13 <criteria operator="AND">
14 <criterion comment="Test that the count function is supported with two components each of which return a single value." test_ref="oval:org.mitre.oval.test:tst:291"/>
15 <criterion comment="Test that the count function is supported with two components each of which return multiple values." test_ref="oval:org.mitre.oval.test:tst:722"/>
16 <criterion comment="Test that the count function is supported with more than two components each of which return a single value." test_ref="oval:org.mitre.oval.test:tst:614"/>
17 <criterion comment="Test that the count function is supported with more than two components each of which return multiple values." test_ref="oval:org.mitre.oval.test:tst:333"/>
18 </criteria>
19 </definition>
20 </definitions>
21 <tests>
22 <variable_test id="oval:org.mitre.oval.test:tst:291" version="1" comment="Test that the count function is supported with two components each of which return a single value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
23 <object object_ref="oval:org.mitre.oval.test:obj:770"/>
24 <state state_ref="oval:org.mitre.oval.test:ste:244"/>
25 </variable_test>
26 <variable_test id="oval:org.mitre.oval.test:tst:722" version="1" comment="Test that the count function is supported with two components each of which return multiple values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
27 <object object_ref="oval:org.mitre.oval.test:obj:793"/>
28 <state state_ref="oval:org.mitre.oval.test:ste:796"/>
29 </variable_test>
30 <variable_test id="oval:org.mitre.oval.test:tst:614" version="1" comment="Test that the count function is supported with more than two components each of which return a single value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
31 <object object_ref="oval:org.mitre.oval.test:obj:782"/>
32 <state state_ref="oval:org.mitre.oval.test:ste:737"/>
33 </variable_test>
34 <variable_test id="oval:org.mitre.oval.test:tst:333" version="1" comment="Test that the count function is supported with more than two components each of which return multiple values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
35 <object object_ref="oval:org.mitre.oval.test:obj:652"/>
36 <state state_ref="oval:org.mitre.oval.test:ste:68"/>
37 </variable_test>
38 </tests>
39 <objects>
40 <variable_object id="oval:org.mitre.oval.test:obj:770" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
41 <var_ref>oval:org.mitre.oval.test:var:694</var_ref>
42 </variable_object>
43 <variable_object id="oval:org.mitre.oval.test:obj:793" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
44 <var_ref>oval:org.mitre.oval.test:var:885</var_ref>
45 </variable_object>
46 <variable_object id="oval:org.mitre.oval.test:obj:782" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
47 <var_ref>oval:org.mitre.oval.test:var:689</var_ref>
48 </variable_object>
49 <variable_object id="oval:org.mitre.oval.test:obj:652" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
50 <var_ref>oval:org.mitre.oval.test:var:479</var_ref>
51 </variable_object>
52 </objects>
53 <states>
54 <variable_state id="oval:org.mitre.oval.test:ste:244" version="1" comment="The int 2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
55 <value>2</value>
56 </variable_state>
57 <variable_state id="oval:org.mitre.oval.test:ste:796" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
58 <value var_ref="oval:org.mitre.oval.test:var:322" var_check="only one"/>
59 </variable_state>
60 <variable_state id="oval:org.mitre.oval.test:ste:737" version="1" comment="The int 3'" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
61 <value>3</value>
62 </variable_state>
63 <variable_state id="oval:org.mitre.oval.test:ste:68" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
64 <value var_ref="oval:org.mitre.oval.test:var:875" var_check="only one"/>
65 </variable_state>
66 </states>
67 <variables>
68 <local_variable id="oval:org.mitre.oval.test:var:694" version="1" comment="Applying the count function to the strings 'abc' and 'def'." datatype="int">
69 <count>
70 <literal_component datatype="string">abc</literal_component>
71 <literal_component datatype="string">def</literal_component>
72 </count>
73 </local_variable>
74 <local_variable id="oval:org.mitre.oval.test:var:885" version="1" comment="Applying the count function to two multi-value variables." datatype="int">
75 <count>
76 <variable_component var_ref="oval:org.mitre.oval.test:var:443"/>
77 <variable_component var_ref="oval:org.mitre.oval.test:var:711"/>
78 </count>
79 </local_variable>
80 <local_variable id="oval:org.mitre.oval.test:var:689" version="1" comment="Applying the count function to the strings 'abc', 'def', 'ghi'." datatype="int">
81 <count>
82 <literal_component datatype="string">abc</literal_component>
83 <literal_component datatype="string">def</literal_component>
84 <literal_component datatype="string">ghi</literal_component>
85 </count>
86 </local_variable>
87 <local_variable id="oval:org.mitre.oval.test:var:479" version="1" comment="Applying the count to three multi-value variables." datatype="int">
88 <count>
89 <variable_component var_ref="oval:org.mitre.oval.test:var:452"/>
90 <variable_component var_ref="oval:org.mitre.oval.test:var:149"/>
91 <variable_component var_ref="oval:org.mitre.oval.test:var:722"/>
92 </count>
93 </local_variable>
94 <constant_variable id="oval:org.mitre.oval.test:var:443" version="1" comment="The strings 'abc' and 'def'" datatype="string">
95 <value>abc</value>
96 <value>def</value>
97 </constant_variable>
98 <constant_variable id="oval:org.mitre.oval.test:var:711" version="1" comment="The strings '123' and '456'" datatype="string">
99 <value>123</value>
100 <value>456</value>
101 </constant_variable>
102 <constant_variable id="oval:org.mitre.oval.test:var:452" version="1" comment="The strings 'abc' and 'def'" datatype="string">
103 <value>abc</value>
104 <value>def</value>
105 </constant_variable>
106 <constant_variable id="oval:org.mitre.oval.test:var:149" version="1" comment="The strings '123' and '456'" datatype="string">
107 <value>123</value>
108 <value>456</value>
109 </constant_variable>
110 <constant_variable id="oval:org.mitre.oval.test:var:722" version="1" comment="The strings 'uvw' and 'xyz'" datatype="string">
111 <value>uvw</value>
112 <value>xyz</value>
113 </constant_variable>
114 <constant_variable id="oval:org.mitre.oval.test:var:322" version="1" comment="The results of the count function on two multi-value variables." datatype="int">
115 <value>4</value>
116 </constant_variable>
117 <constant_variable id="oval:org.mitre.oval.test:var:875" version="1" comment="The results of the count function on three multi-value-variables." datatype="int">
118 <value>6</value>
119 </constant_variable>
120 </variables>
121 </oval_definitions>