Debian Codegraph @

tests/mitre/oval-def_substring_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>2009-05-21T11:46:00-04:00</oval:timestamp>
6 <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use>
7 </generator>
8 <definitions>
9 <definition id="oval:org.mitre.oval.test:def:455" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the substring function is properly supported</title>
12 <description>This definition is intended to evaluate to true if the interpreter properly supports the substring function.</description>
13 </metadata>
14 <criteria operator="AND">
15 <criterion comment="Test that the substring function is supported with a single component that contains a single string value that specifies values for the substring_start and substring_length attributes such that the values are within range of the string's length." test_ref="oval:org.mitre.oval.test:tst:47"/>
16 <criterion comment="Test that the substring function is supported with a single component that contains multiple string values that specify values for the substring_start and substring_length attributes such that the values are within range of the string's length." test_ref="oval:org.mitre.oval.test:tst:174"/>
17 <criterion comment="Test that the substring function is supported with a single component that contains a single string value that specifies a value for the substring_start attribute that is less than 1 and a value for the substring_length attribute such that the value is within range of the string's length." test_ref="oval:org.mitre.oval.test:tst:606"/>
18 <criterion comment="Test that the substring function is supported with a single component that contains a single string value that specifies a value for the substring_start attribute that is within the string's length and a value for the substring_length attribute such that the value is greater than the string's length." test_ref="oval:org.mitre.oval.test:tst:314"/>
19 <criterion comment="Test that the substring function is supported with a single component that contains a single string value that specifies a value for the substring_start attribute that is within the string's length and a value for the substring_length attribute such that the value is less than 0." test_ref="oval:org.mitre.oval.test:tst:982"/>
20 </criteria>
21 </definition>
22 </definitions>
23 <tests>
24 <variable_test id="oval:org.mitre.oval.test:tst:47" version="1" comment="Test that the substring function is supported with a single component that contains a single string value that specifies values for the substring_start and substring_length attributes such that the values are within range of the string's length." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
25 <object object_ref="oval:org.mitre.oval.test:obj:721"/>
26 <state state_ref="oval:org.mitre.oval.test:ste:690"/>
27 </variable_test>
28 <variable_test id="oval:org.mitre.oval.test:tst:174" version="1" comment="Test that the substring function is supported with a single component that contains multiple string values that specify values for the substring_start and substring_length attributes such that the values are within range of the string's length." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
29 <object object_ref="oval:org.mitre.oval.test:obj:270"/>
30 <state state_ref="oval:org.mitre.oval.test:ste:72"/>
31 </variable_test>
32 <variable_test id="oval:org.mitre.oval.test:tst:606" version="1" comment="Test that the substring function is supported with a single component that contains a single string value that specifies a value for the substring_start attribute that is less than 1 and a value for the substring_length attribute such that the value is within range of the string's length." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
33 <object object_ref="oval:org.mitre.oval.test:obj:673"/>
34 <state state_ref="oval:org.mitre.oval.test:ste:11"/>
35 </variable_test>
36 <variable_test id="oval:org.mitre.oval.test:tst:314" version="1" comment="Test that the substring function is supported with a single component that contains a single string value that specifies a value for the substring_start attribute that is within the string's length and a value for the substring_length attribute such that the value is greater than the string's length." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
37 <object object_ref="oval:org.mitre.oval.test:obj:440"/>
38 <state state_ref="oval:org.mitre.oval.test:ste:80"/>
39 </variable_test>
40 <variable_test id="oval:org.mitre.oval.test:tst:982" version="1" comment="Test that the substring function is supported with a single component that contains a single string value that specifies a value for the substring_start attribute that is within the string's length and a value for the substring_length attribute such that the value is less than 0." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
41 <object object_ref="oval:org.mitre.oval.test:obj:113"/>
42 <state state_ref="oval:org.mitre.oval.test:ste:353"/>
43 </variable_test>
44 </tests>
45 <objects>
46 <variable_object id="oval:org.mitre.oval.test:obj:721" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
47 <var_ref>oval:org.mitre.oval.test:var:982</var_ref>
48 </variable_object>
49 <variable_object id="oval:org.mitre.oval.test:obj:270" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
50 <var_ref>oval:org.mitre.oval.test:var:136</var_ref>
51 </variable_object>
52 <variable_object id="oval:org.mitre.oval.test:obj:673" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
53 <var_ref>oval:org.mitre.oval.test:var:330</var_ref>
54 </variable_object>
55 <variable_object id="oval:org.mitre.oval.test:obj:440" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
56 <var_ref>oval:org.mitre.oval.test:var:887</var_ref>
57 </variable_object>
58 <variable_object id="oval:org.mitre.oval.test:obj:113" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
59 <var_ref>oval:org.mitre.oval.test:var:79</var_ref>
60 </variable_object>
61 </objects>
62 <states>
63 <variable_state id="oval:org.mitre.oval.test:ste:690" version="1" comment="The string 'cd'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
64 <value>cd</value>
65 </variable_state>
66 <variable_state id="oval:org.mitre.oval.test:ste:72" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
67 <value var_ref="oval:org.mitre.oval.test:var:684" var_check="only one"/>
68 </variable_state>
69 <variable_state id="oval:org.mitre.oval.test:ste:11" version="1" comment="The string 'ab'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
70 <value>ab</value>
71 </variable_state>
72 <variable_state id="oval:org.mitre.oval.test:ste:80" version="1" comment="The string 'cdefg'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
73 <value>cdefg</value>
74 </variable_state>
75 <variable_state id="oval:org.mitre.oval.test:ste:353" version="1" comment="The string 'cdefg'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
76 <value>cdefg</value>
77 </variable_state>
78 </states>
79 <variables>
80 <local_variable id="oval:org.mitre.oval.test:var:982" version="1" comment="Applying the substring function to the string 'abcdefg' with substring_start value 3 and substring_length value 2." datatype="string">
81 <substring substring_start="3" substring_length="2">
82 <literal_component datatype="string">abcdefg</literal_component>
83 </substring>
84 </local_variable>
85 <local_variable id="oval:org.mitre.oval.test:var:136" version="1" comment="Applying the substring function to a multi-value string with substring_start value 3 and substring_length value 2." datatype="string">
86 <substring substring_start="3" substring_length="2">
87 <variable_component var_ref="oval:org.mitre.oval.test:var:389"/>
88 </substring>
89 </local_variable>
90 <local_variable id="oval:org.mitre.oval.test:var:330" version="1" comment="Applying the substring function to the string 'abcdefg' with substring_start value -1 and substring_length value 2." datatype="string">
91 <substring substring_start="-1" substring_length="2">
92 <literal_component datatype="string">abcdefg</literal_component>
93 </substring>
94 </local_variable>
95 <local_variable id="oval:org.mitre.oval.test:var:887" version="1" comment="Applying the substring function to the string 'abcdefg' with substring_start value 1 and substring_length value 10." datatype="string">
96 <substring substring_start="3" substring_length="10">
97 <literal_component datatype="string">abcdefg</literal_component>
98 </substring>
99 </local_variable>
100 <local_variable id="oval:org.mitre.oval.test:var:79" version="1" comment="Applying the substring function to the string 'abcdefg' with substring_start value 1 and substring_length value -1." datatype="string">
101 <substring substring_start="3" substring_length="-1">
102 <literal_component datatype="string">abcdefg</literal_component>
103 </substring>
104 </local_variable>
105 <constant_variable id="oval:org.mitre.oval.test:var:389" version="1" comment="multi" datatype="string">
106 <value>abcdefg</value>
107 <value>hijklmn</value>
108 <value>opqrstu</value>
109 </constant_variable>
110 <constant_variable id="oval:org.mitre.oval.test:var:684" version="1" comment="multi" datatype="string">
111 <value>cd</value>
112 <value>jk</value>
113 <value>qr</value>
114 </constant_variable>
115 </variables>
116 </oval_definitions>