Home
last modified time | relevance | path

Searched refs:loads (Results 1 – 25 of 2377) sorted by relevance

12345678910>>...96

/external/python/cpython3/Lib/test/test_json/
Dtest_decode.py9 rval = self.loads('1.1', parse_float=decimal.Decimal)
14 rval = self.loads('1', parse_int=float)
19 self.assertEqual(self.loads('{}'), {})
20 self.assertEqual(self.loads('[]'), [])
21 self.assertEqual(self.loads('""'), "")
27 self.assertEqual(self.loads(s), eval(s))
28 self.assertEqual(self.loads(s, object_pairs_hook=lambda x: x), p)
31 od = self.loads(s, object_pairs_hook=OrderedDict)
35 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
39 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
[all …]
Dtest_unicode.py37 self.assertEqual(self.loads('"' + u + '"'), u)
38 self.assertEqual(self.loads('"z\\ud834\\udd20x"'), u)
44 self.assertEqual(self.loads(s), u)
47 self.assertEqual(type(self.loads('""')), str)
48 self.assertEqual(type(self.loads('"a"')), str)
49 self.assertEqual(type(self.loads('["a"]')[0]), str)
65 self.assertEqual(self.loads(bom + encoded), data)
66 self.assertEqual(self.loads(encoded), data)
67 self.assertRaises(UnicodeDecodeError, self.loads, b'["\x80"]')
72 self.assertEqual(self.loads('"\u2600"'.encode('utf-16-le')),
[all …]
Dtest_enum.py40 self.assertEqual(self.loads(self.dumps(enum)), enum)
47 self.assertEqual(self.loads(self.dumps(enum)), enum)
50 self.assertTrue(isnan(self.loads(self.dumps(enum))))
56 self.assertEqual(self.loads(self.dumps(enum)), enum)
61 self.assertEqual(self.loads(self.dumps(list(BigNum))),
65 self.assertEqual(self.loads(self.dumps(list(FloatNum))),
69 self.assertEqual(self.loads(self.dumps(list(WierdNum)))[:2],
71 self.assertTrue(isnan(self.loads(self.dumps(list(WierdNum)))[2]))
82 nd = self.loads(self.dumps(d))
107 nd = self.loads(self.dumps(d))
Dtest_float.py9 self.assertEqual(self.loads(self.dumps(num)), num)
17 self.assertEqual(self.loads('[23456789012E666]'), [float('inf')])
18 self.assertEqual(self.loads('[-23456789012E666]'), [float('-inf')])
24 self.assertEqual(self.loads(out), [val])
26 res = self.loads(out)
/external/python/cpython2/Lib/json/tests/
Dtest_decode.py9 rval = self.loads('1.1', parse_float=decimal.Decimal)
14 rval = self.loads('1', parse_int=float)
22 rval = self.loads('{ "key" : "value" , "k":"v" }')
26 self.assertEqual(self.loads('{}'), {})
27 self.assertEqual(self.loads('[]'), [])
28 self.assertEqual(self.loads('""'), u"")
29 self.assertIsInstance(self.loads('""'), unicode)
35 self.assertEqual(self.loads(s), eval(s))
36 self.assertEqual(self.loads(s, object_pairs_hook=lambda x: x), p)
39 od = self.loads(s, object_pairs_hook=OrderedDict)
[all …]
Dtest_unicode.py48 self.assertEqual(self.loads('"' + u + '"'), u)
49 self.assertEqual(self.loads('"z\\ud834\\udd20x"'), u)
55 self.assertEqual(self.loads(s), u)
61 self.assertEqual(self.loads(s), eval(s))
62 self.assertEqual(self.loads(s, object_pairs_hook = lambda x: x), p)
63 od = self.loads(s, object_pairs_hook = OrderedDict)
67 self.assertEqual(self.loads(s,
73 self.assertEqual(self.loads(u'{"a": "\xe9"}'.encode('utf-8')),
77 self.assertEqual(type(self.loads(u'""')), unicode)
78 self.assertEqual(type(self.loads(u'"a"')), unicode)
[all …]
Dtest_float.py10 self.assertEqual(self.loads(self.dumps(num)), num)
11 self.assertEqual(self.loads(unicode(self.dumps(num))), num)
17 self.assertEqual(self.loads(self.dumps(num)), num)
18 self.assertEqual(self.loads(unicode(self.dumps(num))), num)
21 self.assertEqual(self.loads('[23456789012E666]'), [float('inf')])
22 self.assertEqual(self.loads('[-23456789012E666]'), [float('-inf')])
28 self.assertEqual(self.loads(out), [val])
30 res = self.loads(out)
44 self.assertEqual(self.loads(self.dumps(val)), val)
Dtest_recursion.py73 self.loads('{"a":' * 100000 + '1' + '}' * 100000)
75 self.loads('{"a":' * 100000 + '[1]' + '}' * 100000)
77 self.loads('[' * 100000 + '1' + ']' * 100000)
80 self.loads(u'{"a":' * 100000 + u'1' + u'}' * 100000)
82 self.loads(u'{"a":' * 100000 + u'[1]' + u'}' * 100000)
84 self.loads(u'[' * 100000 + u'1' + u']' * 100000)
/external/ltp/testcases/kernel/syscalls/sysinfo/
Dsysinfo01.c118 l1 = sys_buf->loads[0] / 60000.0; in main()
119 l2 = sys_buf->loads[1] / 60000.0; in main()
120 l3 = sys_buf->loads[2] / 60000.0; in main()
124 sys_buf->loads[0] = sys_buf->loads[0] / 10; in main()
125 sys_buf->loads[1] = sys_buf->loads[1] / 10; in main()
126 sys_buf->loads[2] = sys_buf->loads[2] / 10; in main()
128 printf("load1 %lu\n", sys_buf->loads[0]); in main()
129 printf("load2 %lu\n", sys_buf->loads[1]); in main()
130 printf("load3 %lu\n", sys_buf->loads[2]); in main()
/external/fonttools/Tests/misc/
Dplistlib_test.py129 pl2 = plistlib.loads(data)
149 pl2 = plistlib.loads(data, use_builtin_types=use_builtin_types)
168 pl2 = plistlib.loads(data, use_builtin_types=use_builtin_types)
178 pl2 = plistlib.loads(data, use_builtin_types=use_builtin_types)
185 assert plistlib.loads(plistlib.dumps(data)) == data
192 assert plistlib.loads(plistlib.dumps(data)) == data
197 assert plistlib.loads(plistlib.dumps(data)) == data
206 pl = plistlib.loads(TESTDATA, use_builtin_types=use_builtin_types)
213 pl2 = plistlib.loads(TESTDATA, use_builtin_types=use_builtin_types)
218 pl = plistlib.loads(TESTDATA, use_builtin_types=use_builtin_types)
[all …]
/external/python/cpython3/Lib/test/
Dtest_plistlib.py476 pl2 = plistlib.loads(data)
493 pl2 = plistlib.loads(data)
502 pl2 = plistlib.loads(data)
509 self.assertEqual(plistlib.loads(plistlib.dumps(data)), data)
513 self.assertEqual(plistlib.loads(plistlib.dumps(data)), data)
517 self.assertEqual(plistlib.loads(plistlib.dumps(data)), data)
521 self.assertEqual(plistlib.loads(plistlib.dumps(data, fmt=plistlib.FMT_BINARY)), data)
530 … self.assertEqual(plistlib.loads(plistlib.dumps(dict_data, fmt=plistlib.FMT_BINARY)), dict_data)
552 self.assertEqual(pickle.loads(pickle.dumps(UID(19), protocol=proto)), UID(19))
561 pl = plistlib.loads(TESTDATA[fmt])
[all …]
Dpickletester.py853 self.loads(data)
861 self.assert_is_copy(self._testdata, self.loads(DATA0))
864 self.assert_is_copy(self._testdata, self.loads(DATA1))
867 self.assert_is_copy(self._testdata, self.loads(DATA2))
870 self.assert_is_copy(self._testdata, self.loads(DATA3))
873 self.assert_is_copy(self._testdata, self.loads(DATA4))
895 self.assert_is_copy(X(*args), self.loads(pickle0))
912 self.assert_is_copy(X(*args), self.loads(pickle1))
930 self.assert_is_copy(X(*args), self.loads(pickle2))
935 got = self.loads(data)
[all …]
Dtest_marshal.py17 new = marshal.loads(marshal.dumps(sample, *extra))
44 got = marshal.loads(s)
51 got = marshal.loads(b'I\xfe\xdc\xba\x98\x76\x54\x32\x10')
53 got = marshal.loads(b'I\x01\x23\x45\x67\x89\xab\xcd\xef')
55 got = marshal.loads(b'I\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f')
57 got = marshal.loads(b'I\xf7\xe6\xd5\xc4\xb3\xa2\x91\x80')
76 got = marshal.loads(s)
80 got = marshal.loads(s)
94 self.helper(marshal.loads(marshal.dumps(s)))
106 new = marshal.loads(marshal.dumps(StopIteration))
[all …]
Dtest_pickletools.py12 def loads(self, buf, **kwds): member in OptimizedPickleTests
13 return pickle.loads(buf, **kwds)
26 unpickled = pickle.loads(pickled)
31 unpickled2 = pickle.loads(pickled2)
53 unpickled = pickle.loads(pickled)
58 unpickled2 = pickle.loads(pickled2)
/external/python/cpython2/Lib/test/
Dpickletester.py519 self.loads(data)
537 got = self.loads(canned)
546 got = self.loads(data)
580 self.assertEqual(self.loads(p), expected)
602 self.assert_is_copy(X(*args), self.loads(pickle0))
619 self.assert_is_copy(X(*args), self.loads(pickle1))
637 self.assert_is_copy(X(*args), self.loads(pickle2))
653 self.assertRaises(MyErr, self.loads, pickle0)
667 self.assertRaises(MyErr, self.loads, pickle1)
671 self.assertEqual(self.loads("S'a\\x00\\xa0'\n."), 'a\x00\xa0')
[all …]
Dtest_marshal.py21 got = marshal.loads(s)
46 got = marshal.loads(s)
55 new = marshal.loads(marshal.dumps(b))
72 got = marshal.loads(s)
81 got = marshal.loads(s)
85 got = marshal.loads(s)
94 got = marshal.loads(s)
98 got = marshal.loads(s)
114 new = marshal.loads(marshal.dumps(s))
125 new = marshal.loads(marshal.dumps(s))
[all …]
Dtest_pickle.py21 def loads(self, buf): member in PickleTests
23 return pickle.loads(buf)
46 def loads(self, buf): member in UnpicklerTests
62 def loads(self, buf): member in PicklerTests
81 def loads(self, buf): member in PersPicklerTests
100 def loads(self, buf): member in PickleBigmemPickleTests
102 return pickle.loads(buf)
Dtest_xpickle.py43 def loads(self, buf): member in DumpCPickle_LoadPickle
45 return pickle.loads(buf)
55 def loads(self, buf): member in DumpPickle_LoadCPickle
57 return cPickle.loads(buf)
122 def loads(self, input): member in AbstractCompatTests
123 return self.module.loads(input)
144 got = self.loads(pickle)
150 got = self.loads(pickle)
169 u2 = self.loads(p)
/external/protobuf/python/google/protobuf/internal/
Djson_format_test.py126 self.assertEqual(json.loads(json_format.MessageToJson(message)),
127 json.loads('{"stringValue": "test", '
159 json.loads(json_format.MessageToJson(message)),
160 json.loads(text))
221 copied_dict = json.loads(json.dumps(orig_dict))
291 self.assertEqual(json.loads(golden_text), json.loads(message_text))
315 json.loads(json_format.MessageToJson(message, True)),
316 json.loads('{'
353 json.loads(json_format.MessageToJson(message, True)),
354 json.loads('{'
[all …]
/external/python/jinja/tests/
Dtest_idtracking.py24 assert sym.loads == {
34 assert sym.loads == {
155 assert tmpl_sym.loads == {
170 assert macro_sym.loads == {
191 assert body_sym.loads == {
202 assert for_sym.loads == {
226 assert sym.loads == {
251 assert sym.loads == {
285 assert for_sym.loads == {
/external/llvm/test/CodeGen/SystemZ/
Dvec-move-02.ll1 ; Test vector loads.
5 ; Test v16i8 loads.
14 ; Test v8i16 loads.
23 ; Test v4i32 loads.
32 ; Test v2i64 loads.
41 ; Test v4f32 loads.
50 ; Test v2f64 loads.
113 ; Test v2i8 loads.
122 ; Test v4i8 loads.
131 ; Test v8i8 loads.
[all …]
/external/llvm-project/llvm/test/CodeGen/SystemZ/
Dvec-move-02.ll1 ; Test vector loads.
5 ; Test v16i8 loads.
14 ; Test v8i16 loads.
23 ; Test v4i32 loads.
32 ; Test v2i64 loads.
41 ; Test v4f32 loads.
50 ; Test v2f64 loads.
113 ; Test v2i8 loads.
122 ; Test v4i8 loads.
131 ; Test v8i8 loads.
[all …]
/external/llvm-project/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/
Dparser_json.test10 process_info_json = json.loads('{"pid" : 287, "procName" : "mediaserverd", "procPath" : "\/usr\/sbi…
17 crash_reason_json = json.loads('{"type" : "EXC_BAD_ACCESS", "signal" : "SIGSEGV", "subtype" : "KERN…
20 crash_reason_json = json.loads('{"type" : "EXC_BAD_ACCESS", "signal" : "SIGSEGV"}')
23 crash_reason_json = json.loads('{"type" : "EXC_BAD_ACCESS", "signal" : "SIGSEGV", "codes" : "0x0000…
26 thread_state_json = json.loads('{"x":[268451845,117442566],"lr":7309751904,"cpsr":1073741824,"fp":6…
37 parser.data = json.loads('{"usedImages":[["f4d85377-f215-3da3-921e-3fe870e622e9",7309737984,"P"]],"…
38 thread_json = json.loads('[{"triggered":true,"id":3835,"queue":"com.apple.bwgraph.devicevendor","fr…
/external/pigweed/pw_trace/py/
Dtrace_test.py60 self.assertEqual(json.loads(json_lines[0]), {
72 self.assertEqual(expected, json.loads(actual))
85 self.assertEqual(json.loads(json_lines[0]), {
104 json.loads(json_lines[0]), {
124 json.loads(json_lines[0]), {
146 json.loads(json_lines[0]), {
168 json.loads(json_lines[0]), {
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/
Dtrace_event_unittest.py56 log_output = json.loads(f.read() + ']')
84 self.assertEquals(len(json.loads(f.read() + ']')), 1)
96 self.assertEquals(len(json.loads(f.read() + ']')), 1)
99 self.assertEquals(len(json.loads(f.read() + ']')), 2)
104 self.assertEquals(len(json.loads(f.read() + ']')),1)
107 self.assertEquals(len(json.loads(f.read() + ']')), 1)
113 self.assertEquals(len(json.loads(f.read() + ']')), 1)
117 self.assertEquals(len(json.loads(f.read() + ']')), 2)
124 log_output = json.loads(f.read() + ']')
142 log_output = json.loads(f.read() + ']')
[all …]

12345678910>>...96