Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_getgitbranch.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mf_getgitbranch.sas macro
4
5 <h4> SAS Macros </h4>
6 @li mf_getgitbranch.sas
7 @li mp_assert.sas
8
9**/
10
11/* grab core repo */
12%let gitdir=%sysfunc(pathname(work))/core;
13%let repo=https://github.com/sasjs/core;
14%put source clone rc=%sysfunc(GITFN_CLONE(&repo,&gitdir));
15
16%mp_assert(
17 iftrue=(%mf_getgitbranch(&gitdir)=main),
18 desc=Checking correct branch was obtained,
19 outds=work.test_results
20)