Home
last modified time | relevance | path

Searched refs:sut (Results 1 – 25 of 44) sorted by relevance

12

/external/clang/tools/scan-build-py/tests/unit/
Dtest_compilation.py7 import libscanbuild.compilation as sut namespace
14 self.assertIsNotNone(sut.compiler_language(['clang']))
15 self.assertIsNotNone(sut.compiler_language(['clang-3.6']))
16 self.assertIsNotNone(sut.compiler_language(['clang++']))
17 self.assertIsNotNone(sut.compiler_language(['clang++-3.5.1']))
18 self.assertIsNotNone(sut.compiler_language(['cc']))
19 self.assertIsNotNone(sut.compiler_language(['c++']))
20 self.assertIsNotNone(sut.compiler_language(['gcc']))
21 self.assertIsNotNone(sut.compiler_language(['g++']))
22 self.assertIsNotNone(sut.compiler_language(['/usr/local/bin/gcc']))
[all …]
Dtest_shell.py7 import libscanbuild.shell as sut namespace
15 self.assertEqual(sut.encode(sut.decode(value)), value)
23 self.assertEqual(sut.decode(sut.encode(value)), value)
33 self.assertEqual(sut.encode(['clang', "it's me", 'again']),
35 self.assertEqual(sut.encode(['clang', "it(s me", 'again)']),
37 self.assertEqual(sut.encode(['clang', 'redirect > it']),
39 self.assertEqual(sut.encode(['clang', '-DKEY="VALUE"']),
41 self.assertEqual(sut.encode(['clang', '-DKEY="value with spaces"']),
Dtest_report.py8 import libscanbuild.report as sut namespace
19 for bug in sut.parse_bug_html(file_name):
28 return sut.parse_crash(file_name)
106 result = sut.parse_crash(pp_file + '.info.txt')
117 self.assertEqual('file', sut.chop('/prefix', '/prefix/file'))
118 self.assertEqual('file', sut.chop('/prefix/', '/prefix/file'))
119 self.assertEqual('lib/file', sut.chop('/prefix/', '/prefix/lib/file'))
120 self.assertEqual('/prefix/file', sut.chop('', '/prefix/file'))
123 self.assertEqual('../src/file', sut.chop('/cwd', '/src/file'))
124 self.assertEqual('../src/file', sut.chop('/prefix/cwd',
[all …]
Dtest_intercept.py8 import libscanbuild.intercept as sut namespace
18 return list(sut.format_entry(trace))
31 return list(sut.format_entry(trace))[0]['file']
76 self.assertTrue(sut.is_preload_disabled(OSX))
79 self.assertFalse(sut.is_preload_disabled(OSX))
82 self.assertTrue(sut.is_preload_disabled(LINUX))
85 self.assertFalse(sut.is_preload_disabled(LINUX))
93 self.assertFalse(sut.is_preload_disabled(OSX))
94 self.assertFalse(sut.is_preload_disabled(LINUX))
96 self.assertFalse(sut.is_preload_disabled('unix'))
Dtest_runner.py8 import libscanbuild.runner as sut namespace
20 opts = sut.classify_parameters(cmd)
30 opts = sut.classify_parameters(cmd)
40 opts = sut.classify_parameters(cmd)
135 result = sut.run_analyzer(opts, spy.call)
183 sut.report_failure(opts)
215 sut.filter_debug_flags(opts, spy.call))
226 sut.set_file_path_relative(input, spy.call))
240 self.assertEqual(spy.success, sut.language_check(input, spy.call))
254 self.assertIsNone(sut.language_check(input, spy.call))
[all …]
Dtest_clang.py8 import libscanbuild.clang as sut namespace
20 result = sut.get_arguments(
29 Exception, sut.get_arguments,
36 result = sut.get_checkers('clang', [])
41 result = sut.get_active_checkers('clang', [])
Dtest_libear.py7 import libear as sut namespace
15 with sut.TemporaryDirectory() as tmpdir:
24 with sut.TemporaryDirectory() as tmpdir:
Dtest_analyze.py7 import libscanbuild.analyze as sut namespace
/external/llvm-project/clang/tools/scan-build-py/tests/unit/
Dtest_compilation.py6 import libscanbuild.compilation as sut namespace
13 self.assertIsNotNone(sut.compiler_language(['clang']))
14 self.assertIsNotNone(sut.compiler_language(['clang-3.6']))
15 self.assertIsNotNone(sut.compiler_language(['clang++']))
16 self.assertIsNotNone(sut.compiler_language(['clang++-3.5.1']))
17 self.assertIsNotNone(sut.compiler_language(['cc']))
18 self.assertIsNotNone(sut.compiler_language(['c++']))
19 self.assertIsNotNone(sut.compiler_language(['gcc']))
20 self.assertIsNotNone(sut.compiler_language(['g++']))
21 self.assertIsNotNone(sut.compiler_language(['/usr/local/bin/gcc']))
[all …]
Dtest_shell.py6 import libscanbuild.shell as sut namespace
14 self.assertEqual(sut.encode(sut.decode(value)), value)
22 self.assertEqual(sut.decode(sut.encode(value)), value)
32 self.assertEqual(sut.encode(['clang', "it's me", 'again']),
34 self.assertEqual(sut.encode(['clang', "it(s me", 'again)']),
36 self.assertEqual(sut.encode(['clang', 'redirect > it']),
38 self.assertEqual(sut.encode(['clang', '-DKEY="VALUE"']),
40 self.assertEqual(sut.encode(['clang', '-DKEY="value with spaces"']),
Dtest_report.py7 import libscanbuild.report as sut namespace
18 for bug in sut.parse_bug_html(file_name):
27 return sut.parse_crash(file_name)
105 result = sut.parse_crash(pp_file + '.info.txt')
116 self.assertEqual('file', sut.chop('/prefix', '/prefix/file'))
117 self.assertEqual('file', sut.chop('/prefix/', '/prefix/file'))
118 self.assertEqual('lib/file', sut.chop('/prefix/', '/prefix/lib/file'))
119 self.assertEqual('/prefix/file', sut.chop('', '/prefix/file'))
122 self.assertEqual('../src/file', sut.chop('/cwd', '/src/file'))
123 self.assertEqual('../src/file', sut.chop('/prefix/cwd',
[all …]
Dtest_analyze.py11 import libscanbuild.analyze as sut namespace
21 sut.report_directory(tmpdir, False) as report_dir1, \
22 sut.report_directory(tmpdir, False) as report_dir2, \
23 sut.report_directory(tmpdir, False) as report_dir3:
33 opts = sut.classify_parameters(cmd)
43 opts = sut.classify_parameters(cmd)
53 opts = sut.classify_parameters(cmd)
148 result = sut.run_analyzer(opts, spy.call)
195 sut.report_failure(opts)
227 sut.filter_debug_flags(opts, spy.call))
[all …]
Dtest_clang.py7 import libscanbuild.clang as sut namespace
15 self.assertTrue(sut.get_version('clang'))
19 sut.get_version('notexists')
29 result = sut.get_arguments(
38 sut.get_arguments(['clang', '-x', 'c', 'notexist.c'], '.')
42 sut.get_arguments(['notexist'], '.')
48 result = sut.get_checkers('clang', [])
59 result = sut.get_active_checkers('clang', [])
66 test = sut.is_active(['a', 'b.b', 'c.c.c'])
89 result = dict(sut.parse_checkers(lines))
[all …]
Dtest_intercept.py7 import libscanbuild.intercept as sut namespace
17 return list(sut.format_entry(trace))
30 return list(sut.format_entry(trace))[0]['file']
74 self.assertTrue(sut.is_preload_disabled(OSX))
77 self.assertFalse(sut.is_preload_disabled(OSX))
85 self.assertFalse(sut.is_preload_disabled(OSX))
87 self.assertFalse(sut.is_preload_disabled('unix'))
Dtest_libear.py6 import libear as sut namespace
14 with sut.TemporaryDirectory() as tmpdir:
23 with sut.TemporaryDirectory() as tmpdir:
/external/autotest/site_utils/rpm_control_system/
Drpm_controller_unittest.py174 sut = rpm_controller.CiscoPOEController(self.SWITCH)
175 mock_ssh.expect(sut.POE_USERNAME_PROMPT, timeout=sut.LOGIN_TIMEOUT)
177 mock_ssh.expect(self.PWD, timeout=sut.LOGIN_TIMEOUT)
179 mock_ssh.expect(self.DEVICE, timeout=sut.LOGIN_TIMEOUT)
181 self.assertIsNotNone(sut._login())
186 sut = rpm_controller.CiscoPOEController(self.SWITCH)
188 self.mox.StubOutWithMock(sut, '_login')
189 sut._login().AndReturn(mock_ssh)
190 self.mox.StubOutWithMock(sut, '_verify_state')
191 sut._verify_state(self.PORT, 'ON', mock_ssh).AndReturn(True)
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/
DTestTypeFactoryWithClassLoader.java74 TypeFactory sut = mapper.getTypeFactory().withModifier(typeModifier); in testCallingOnlyWithModifierGivesExpectedResults() local
75 Assert.assertNull(sut.getClassLoader()); in testCallingOnlyWithModifierGivesExpectedResults()
76 Assert.assertEquals(typeModifier,sut._modifiers[0]); in testCallingOnlyWithModifierGivesExpectedResults()
81 TypeFactory sut = mapper.getTypeFactory().withClassLoader(classLoader); in testCallingOnlyWithClassLoaderGivesExpectedResults() local
82 Assert.assertNotNull(sut.getClassLoader()); in testCallingOnlyWithClassLoaderGivesExpectedResults()
83 Assert.assertArrayEquals(null,sut._modifiers); in testCallingOnlyWithClassLoaderGivesExpectedResults()
88 TypeFactory sut = mapper.getTypeFactory().withModifier(typeModifier).withClassLoader(classLoader); in testDefaultTypeFactoryNotAffectedByWithConstructors() local
89 Assert.assertEquals(classLoader, sut.getClassLoader()); in testDefaultTypeFactoryNotAffectedByWithConstructors()
90 Assert.assertEquals(typeModifier,sut._modifiers[0]); in testDefaultTypeFactoryNotAffectedByWithConstructors()
97 TypeFactory sut = mapper.getTypeFactory().withModifier(typeModifier).withClassLoader(classLoader); in testSetsTheCorrectClassLoderIfUsingWithModifierFollowedByWithClassLoader() local
[all …]
/external/guice/extensions/persist/test/com/google/inject/persist/jpa/
DJpaPersistServiceTest.java36 private final JpaPersistService sut = field in JpaPersistServiceTest
50 sut.start(factory); in test_givenErrorOnEntityManagerClose_whenEndIsCalled_thenEntityManagerIsRemoved()
51 sut.begin(); in test_givenErrorOnEntityManagerClose_whenEndIsCalled_thenEntityManagerIsRemoved()
56 sut.end(); in test_givenErrorOnEntityManagerClose_whenEndIsCalled_thenEntityManagerIsRemoved()
59 assertThat(sut.isWorking(), is(false)); in test_givenErrorOnEntityManagerClose_whenEndIsCalled_thenEntityManagerIsRemoved()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DDelegatingCreatorImplicitNames1001Test.java71 ObjectMapper sut = new ObjectMapper(); in testWithoutNamedParameters() local
75 String actualJson = sut.writeValueAsString(d); in testWithoutNamedParameters()
76 D actualD = sut.readValue(actualJson, D.class); in testWithoutNamedParameters()
85 ObjectMapper sut = new ObjectMapper() in testWithNamedParameters() local
90 String actualJson = sut.writeValueAsString(d); in testWithNamedParameters()
91 D actualD = sut.readValue(actualJson, D.class); in testWithNamedParameters()
/external/mockito/src/test/java/org/mockitousage/bugs/injection/
DParentTestMockInjectionTest.java26 assertNotNull(it.sut.daoFromParent); in injectMocksShouldInjectMocksFromTestSuperClasses()
27 assertNotNull(it.sut.daoFromSub); in injectMocksShouldInjectMocksFromTestSuperClasses()
37 @InjectMocks private TestedSystem sut = new TestedSystem(); field in ParentTestMockInjectionTest.ImplicitTest
48 sut.businessMethod(); in noNullPointerException()
/external/dokka/core/src/test/kotlin/Model/
DCodeNodeTest.kt11 val sut = CodeNode("\n \t \r $expected", "") in text_normalisesInitialWhitespace() constant
12 assertEquals(expected, sut.text()) in text_normalisesInitialWhitespace()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DIOUtilsTest.java134 final InputStream sut = wrapper.wrap(in); in skip() local
135 Assert.assertEquals(10, IOUtils.skip(sut, 10)); in skip()
136 Assert.assertEquals(11, sut.read()); in skip()
/external/icu/icu4c/source/data/rbnf/
Dro.txt34 "100: una sut\u0103[ >>];",
56 "100: una sut\u0103[ >>];",
76 "100: una sut\u0103[ >>];",
/external/cldr/common/testData/transforms/
Dhy-fonipa-t-hy.txt348 հոգածության hoɡat͡sutʰjan
377 հանցագործությունների hant͡sʰaɡoɾt͡sutʰjunnɛɾi
378 հանցագործություն hant͡sʰaɡoɾt͡sutʰjun
379 հանցագործության hant͡sʰaɡoɾt͡sutʰjan
657 ամուսնալուծության amusnalut͡sutʰjan
682 Հանցագործության hant͡sʰaɡoɾt͡sutʰjan
/external/python/pyfakefs/docs/
Dusage.rst228 ``example/sut.py``, the following code will work:
237 self.setUpPyfakefs(modules_to_reload=[example.sut])
242 self.assertTrue(example.sut.check_if_exists(file_path))
245 @pytest.mark.parametrize('fs', [[None, [example.sut]]], indirect=True)
249 assert example.sut.check_if_exists(file_path)
253 with Patcher(modules_to_reload=[example.sut]) as patcher:
256 assert example.sut.check_if_exists(file_path)
259 @patchfs(modules_to_reload=[example.sut])
263 assert example.sut.check_if_exists(file_path)

12