The script uses the `%mp_assert` macro to perform several assertions. Each assertion verifies that a call to `%mf_getapploc` with a specific path (e.g., `/some/loc/tests/services/x/service`) returns the expected application path (e.g., `/some/loc`). The tests cover different path scenarios including services, nested locations, jobs, and macros/tests without subfolders, ensuring that the `%mf_getapploc` extraction logic is robust. The assertion results are recorded in the `work.test_results` table.
Data Analysis
Type : CREATION_INTERNE
The data used for the tests (the input paths provided to `%mf_getapploc`) are generated directly in the code by macro calls. The test results are stored in an internally created temporary table (`work.test_results`).
1 Code Block
Macro calls %mp_assert Data
Explanation : This block contains a series of calls to the `%mp_assert` macro. Each call is a unit assertion that checks if the `iftrue` expression is true. The `iftrue` expression compares the result of `%mf_getapploc` (with a specific input path) to an expected value. The test description (`desc`) and the output results table (`outds=work.test_results`) are provided for each assertion. These assertions test different use cases for `%mf_getapploc`, including service, job, and test folder paths, to validate its application path extraction logic.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Copyright 2010-2023 HMS Analytical Software GmbH, http://www.analytical-software.de. This file is part of SASUnit, the Unit testing framework for SAS(R) programs. For copyright information and terms of usage under the GNU Lesser General Public License see included file README.md or https://github.com/HMS-Analytical-Software/SASUnit/wiki/readme/.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.