Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
run_tests_test.RunTestsTest Class Reference
Inheritance diagram for run_tests_test.RunTestsTest:

Public Member Functions

def test_resolve_both_package_and_packages (self)
 
def test_resolve_package_make_symbolic_link (self)
 
def test_build_test_cases_with_arguments (self)
 

Detailed Description

Definition at line 29 of file run_tests_test.py.

Member Function Documentation

◆ test_build_test_cases_with_arguments()

def run_tests_test.RunTestsTest.test_build_test_cases_with_arguments (   self)

Definition at line 46 of file run_tests_test.py.

46 def test_build_test_cases_with_arguments(self):
47 test_cases = run_tests.build_test_cases([
48 {'test_command': 'test run abc'},
49 {'test_command': 'test run def -- --args'},
50 ])
51 self.assertEqual(
52 test_cases,
53 [run_tests.TestCase(package='abc'),
54 run_tests.TestCase(package='def', args='--args')]
55 )
56
57
List[TestCase] build_test_cases(Iterable[Mapping[str, Any]] tests)
Definition: run_tests.py:111

◆ test_resolve_both_package_and_packages()

def run_tests_test.RunTestsTest.test_resolve_both_package_and_packages (   self)

Definition at line 31 of file run_tests_test.py.

31 def test_resolve_both_package_and_packages(self):
32 packages = run_tests.resolve_packages([{'package': 'abc'}, {'packages': ['abc', 'def']}])
33 self.assertEqual(
34 packages, {os.path.join(run_tests.OUT_DIR, 'abc'),
35 os.path.join(run_tests.OUT_DIR, 'def')}
36 )
37
Set[str] resolve_packages(Iterable[Mapping[str, Any]] tests)
Definition: run_tests.py:82

◆ test_resolve_package_make_symbolic_link()

def run_tests_test.RunTestsTest.test_resolve_package_make_symbolic_link (   self)

Definition at line 38 of file run_tests_test.py.

38 def test_resolve_package_make_symbolic_link(self):
39 Path(os.path.join(run_tests.OUT_DIR, 'abc-0.far')).touch()
41 {'package': 'abc-0.far'},
42 ])
43 self.assertEqual(packages, {os.path.join(run_tests.OUT_DIR, 'abc.far')})
44 self.assertTrue(os.path.islink(os.path.join(run_tests.OUT_DIR, 'abc.far')))
45
CanvasPath Path
Definition: dart_ui.cc:58

The documentation for this class was generated from the following file: