Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_gitlog.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_gitlog.sas macro
4
5 <h4> SAS Macros </h4>
6 @li mf_nobs.sas
7 @li mp_gitlog.sas
8 @li mp_assert.sas
9 @li mp_assertscope.sas
10
11**/
12
13/* grab core repo */
14%let gitdir=%sysfunc(pathname(work))/core;
15%let repo=https://github.com/sasjs/core;
16%put source clone rc=%sysfunc(GITFN_CLONE(&repo,&gitdir));
17
18%mp_assertscope(SNAPSHOT)
19%mp_gitlog(&gitdir,outds=work.test1)
20%mp_assertscope(COMPARE)
21
22%mp_assert(
23 iftrue=(&syscc=0),
24 desc=Regular test works,
25 outds=work.test_results
26)
27
28%mp_assert(
29 iftrue=(%mf_nobs(work.test1)>1000),
30 desc=output has gt 1000 rows,
31 outds=work.test_results
32)