1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-02 07:10:06 +00:00
Files
core/tests/base/mf_getgitbranch.test.sas
2022-11-30 20:15:10 +01:00

21 lines
425 B
SAS

/**
@file
@brief Testing mf_getgitbranch.sas macro
<h4> SAS Macros </h4>
@li mf_getgitbranch.sas
@li mp_assert.sas
**/
/* grab core repo */
%let gitdir=%sysfunc(pathname(work))/core;
%let repo=https://github.com/sasjs/core;
%put source clone rc=%sysfunc(GITFN_CLONE(&repo,&gitdir));
%mp_assert(
iftrue=(%mf_getgitbranch(&gitdir)=main),
desc=Checking correct branch was obtained,
outds=work.test_results
)