SASUnit Examples  Version 1.3.0
sasunit Directory Reference

Directories

directory  linux
 
directory  unix_aix
 
directory  windows
 

Files

file  _abspath.sas [code]
 check whether &i_path is absolute or empty. If not, append to &i_root.
 
file  _assertlibrary.sas [code]
 Main routine of assertLibrary.
 
file  _asserts.sas [code]
 Called by assert macros, fills table tst.
 
file  _checklog.sas [code]
 check log for errors or warnings
 
file  _checkscenario.sas [code]
 determine whether a test scenario has to be executed
 
file  _closehtmlpage.sas [code]
 This macro is part of the HTML speedup solution and "closes" an open HTML page.
 
file  _copyfile.sas [code]
 copy file byte by byte
 
file  _createtestsubfolder.sas [code]
 Creates test subfolders.
 
file  _deletescenariofiles.sas [code]
 Deletes all appendant files in the log, tst and rep folders. Called before a scenario is being executed in order to avoid disused files.
 
file  _delfile.sas [code]
 delete an external file if it exists
 
file  _deltempfiles.sas [code]
 delete all SAS datasets in the form WORK.DATAxxx, see tempFileName.sas
 
file  _detectsymbols.sas [code]
 determine the language dependant symbols used for NOTE, ERROR, WARNING in the SAS log
 
file  _doc.sas [code]
 This is the readme file for version 1.2 of SASUnit, the Unit testing framework for SAS(R) programs, copyright 2010, 2012 HMS Analytical Software GmbH, http://www.analytical-software.de.
 
file  _doxygroups.sas [code]
 No source code - only file grouping for Doxygen.
 
file  _existdir.sas [code]
 check whether a directory exists
 
file  _existvar.sas [code]
 determines whether a certain variable, optionally of a certain type, exists in a SAS dataset
 
file  _getabspathcomponents.sas [code]
 of a given absolute file path (with / as dir separator), extract the file name and the path to the file (without file name) Example: The absolute path C:/temp/test.sas splitted into the two strings C:/temp and test.sas
 
file  _getautocallnumber.sas [code]
 look for a specific program in all of the autocall libraries and return the number of the library (0..10) or . if not found.
For autocall library numbering see initsasunit.sas.
 
file  _getextension.sas [code]
 get file extension including the separating dot
 
file  _getpgmdesc.sas [code]
 Retrieve program description from Doxygen brief tag.
 
file  _getscenariotestid.sas [code]
 Determine the test case id.
 
file  _gettestsubfolder.sas [code]
 Determines and returns the path for test subfolders.
 
file  _handleerror.sas [code]
 check for errors and set status code and messages
 
file  _initerrorhandler.sas [code]
 initialize error handling, see _handleError.sas.
 
file  _loadenvironment.sas [code]
 Initialize runtime environment (macro symbols and librefs / / filerefs)
 
file  _nls.sas [code]
 macro symbols for national language support
 
file  _nobs.sas [code]
 Returns number of observations in a SAS dataset.
 
file  _opendummyhtmlpage.sas [code]
 This macro is part of the HTML speedup solution and "closes" an open HTML page.
 
file  _render_assertcolumnsact.sas [code]
 renders the layout of the actual column for assertColumns
 
file  _render_assertcolumnsexp.sas [code]
 renders the layout of the expected column for assertColumns
 
file  _render_assertcolumnsrep.sas [code]
 create reports for assertColumns
 
file  _render_assertequalsact.sas [code]
 renders the layout of the actual column for assertEquals
 
file  _render_assertequalsexp.sas [code]
 renders the layout of the expected column for assertEquals
 
file  _render_assertforeignkeyact.sas [code]
 renders the layout of the actual column for assertForeignKey
 
file  _render_assertforeignkeyexp.sas [code]
 renders the layout of the expected column for assertForeignKey
 
file  _render_assertforeignkeyrep.sas [code]
 create HTML pages for assertForeignKey
 
file  _render_assertlibraryact.sas [code]
 renders the layout of the actual column for assertLibrary
 
file  _render_assertlibraryexp.sas [code]
 renders the layout of the expected column for assertLibrary
 
file  _render_assertlibraryrep.sas [code]
 create HTML pages for assertLibrary
 
file  _render_assertlogact.sas [code]
 renders the layout of the actual column for assertLog
 
file  _render_assertlogexp.sas [code]
 renders the layout of the expected column for assertLog
 
file  _render_assertlogmsgact.sas [code]
 renders the layout of the actual column for assertLogMsg
 
file  _render_assertlogmsgexp.sas [code]
 renders the layout of the expected column for assertLogMsg
 
file  _render_assertperformanceact.sas [code]
 renders the layout of the actual column for assertPerformance
 
file  _render_assertperformanceexp.sas [code]
 renders the layout of the expected column for assertPerformance
 
file  _render_assertprimarykeyact.sas [code]
 renders the layout of the actual column for assertPrimaryKey
 
file  _render_assertprimarykeyexp.sas [code]
 renders the layout of the expected column for assertPrimaryKey
 
file  _render_assertprimarykeyrep.sas [code]
 create HTML pages for assertPrimaryKey
 
file  _render_assertrecordcountact.sas [code]
 renders the layout of the actual column for assertRecordCount
 
file  _render_assertrecordcountexp.sas [code]
 renders the layout of the expected column for assertRecordCount
 
file  _render_assertrecordexistsact.sas [code]
 renders the layout of the actual column for assertRecordExists
 
file  _render_assertrecordexistsexp.sas [code]
 renders the layout of the expected column for assertRecordExists
 
file  _render_assertreportact.sas [code]
 renders the layout of the actual column for assertReport
 
file  _render_assertreportexp.sas [code]
 renders the layout of the expected column for assertReport
 
file  _render_assertreportrep.sas [code]
 copy reports for assertReport and create frame page for comparison where necessary (if two reports have been specified)
 
file  _render_assertrowexpressionact.sas [code]
 renders the layout of the actual column for _render_assertRowExpression
 
file  _render_assertrowexpressionexp.sas [code]
 renders the layout of the expected column for assertRowExpression
 
file  _render_assertrowexpressionrep.sas [code]
 create HTML pages for assertRowExpression
 
file  _render_asserttableexistsact.sas [code]
 renders the layout of the actual column for assertTableExists
 
file  _render_asserttableexistsexp.sas [code]
 renders the layout of the expected column for assertTableExists
 
file  _render_datacolumn.sas [code]
 renders the layout of a generic data column
 
file  _render_iconcolumn.sas [code]
 renders the layout of the icon column
 
file  _render_idcolumn.sas [code]
 renders the layout of any id column
 
file  _reportautonhtml.sas [code]
 create a list of units under test for HTML report
 
file  _reportcashtml.sas [code]
 create a list of test cases for HTML report
 
file  _reportcreatestyle.sas [code]
 Creates to style used while rendering ODS output.
 
file  _reportcreatetagset.sas [code]
 Creates tageset used with ODS for generating JUnit-XML output.
 
file  _reportdetailhtml.sas [code]
 create page with detail information of a test case in HTML format
 
file  _reportfooter.sas [code]
 create footer area of an page for reporting
 
file  _reportfooterhtml.sas [code]
 create footer area of an HTML page for reporting
 
file  _reportframehtml.sas [code]
 create frame page for HTML report
 
file  _reportheaderhtml.sas [code]
 create HTML header for a page in the HTML report
 
file  _reporthomehtml.sas [code]
 create home page of HTML report
 
file  _reportjunitxml.sas [code]
 Creation of XML-based test report according to the JUnit-Sepcification.
 
file  _reportloghtml.sas [code]
 convert log-File into HTML page
 
file  _reportpagetophtml.sas [code]
 create HTML header, tabs and title of an HTML page
 
file  _reportscnhtml.sas [code]
 create list of test scenarios for HTML report
 
file  _reporttabshtml.sas [code]
 create tabs on HTML page for report
 
file  _reporttcghtml.sas [code]
 Processes the output of the MCOVERAGE and MCOVERAGELOC system options available in SAS 9.3 in order to assess test coverage.
A html representation of a given macro source code file is generated, showing which lines of code were executed during tests.
 
file  _reporttreehtml.sas [code]
 create the table of contents on the left side of the HTML report as a tree
 
file  _scenario.sas [code]
 initialize a test scenario, see initSASUnit.sas. _scenario.sas is used to initialize the SAS session spawned by runSASUnit.sas
 
file  _stdpath.sas [code]
 standardizes a path makes it relative to a root path
 
file  _tempfilename.sas [code]
 creates a unique name for a temporary dataset in the form WORK.DATAxxx, where xxx is a consecutive integer.
 
file  _termscenario.sas [code]
 close the last test case at the end of a test scenario.
 
file  _timestamp.sas [code]
 return a formatted timestamp string from a specified datetime value or from the current time.
 
file  assertcolumns.sas [code]
 Check whether there are differences between the values of the columns of two sas data sets (PROC COMPARE).
 
file  assertequals.sas [code]
 Check whether there are differences between the value of a macro variable and an expected value.
 
file  assertforeignkey.sas [code]
 Checks whether a foreign key relationship between the columns of two data sets exists.
 
file  assertlibrary.sas [code]
 Check whether all files are identical in the libraries i_expected and i_actual.
 
file  assertlog.sas [code]
 Check whether errors or warnings appear in the log.
 
file  assertlogmsg.sas [code]
 Check whether a certain message appears in the log.
 
file  assertperformance.sas [code]
 Check whether runtime of the testcase is below or equal a given limit.
 
file  assertprimarykey.sas [code]
 Checks whether a set of columns can be used as primary key for the data set.
 
file  assertrecordcount.sas [code]
 This assert checks whether a certain number of records exist in a data set specified by parameters i_libref and i_memname.
 
file  assertrecordexists.sas [code]
 Check whether at least one record exists which satisfies a certain WHERE condition.
 
file  assertreport.sas [code]
 Check whether a report file exists and was created during the current SAS session.
 
file  assertrowexpression.sas [code]
 Checks if all observations meet a given WHERE expression.
 
file  asserttableexists.sas [code]
 Check whether a certain data set, view or catalogue exists.
 
file  endtestcall.sas [code]
 Ends an invocation of a program under test.
 
file  endtestcase.sas [code]
 Ends a test case.
 
file  initsasunit.sas [code]
 Initialization of a test suite that may comprise several test scenarios.
 
file  inittestcase.sas [code]
 Start of a new test case that comprises an invocation of a program under test and one or more assertions.
 
file  reportsasunit.sas [code]
 Creation of a test report.
 
file  runsasunit.sas [code]
 Invokes one or more test scenarios.