Rtos API example

Embed: (wiki syntax)

« Back to documentation index

memap_test Namespace Reference

memap_test Namespace Reference

Functions

def memap_parser
def generate_test_helper
def test_report_computed
def test_generate_output_table
def test_generate_output_json
def test_generate_output_csv_ci

Detailed Description

mbed SDK
Copyright (c) 2017 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Function Documentation

def memap_test::generate_test_helper (   memap_parser,
  format,
  depth,
  file_output = None 
)
Helper that tests that the member variables "modules" is
unchanged after calling "generate_output"

:param memap_parser: the parser object
:param depth: how much detail to put in the report
:param format:  the file type to output
:param file_output: the file to output to

Definition at line 140 of file memap_test.py.

def memap_test::memap_parser (  )
Called before each test case

:return:

Definition at line 31 of file memap_test.py.

def memap_test::test_generate_output_csv_ci (   memap_parser,
  tmpdir,
  depth 
)
Test ensures that an output of type "csv-ci" can be generated correctly

:param memap_parser: Mocked parser
:param tmpdir: a unique location to place an output file
:param depth: the detail of the output

Definition at line 200 of file memap_test.py.

def memap_test::test_generate_output_json (   memap_parser,
  tmpdir,
  depth 
)
Test that an output of type "json" can be generated correctly
:param memap_parser: Mocked parser
:param tmpdir: a unique location to place an output file
:param depth: the detail of the output

Definition at line 186 of file memap_test.py.

def memap_test::test_generate_output_table (   memap_parser,
  depth 
)
Test that an output of type "table" can be generated correctly
:param memap_parser: Mocked parser
:param depth: the detail of the output

Definition at line 176 of file memap_test.py.

def memap_test::test_report_computed (   memap_parser,
  depth 
)
Test that a report and summary are computed

:param memap_parser: Mocked parser
:param depth: the detail of the output

Definition at line 160 of file memap_test.py.