SASUnit Examples  Version 1.5.0
_render_assertreportexp.sas
Go to the documentation of this file.
1 
23 %macro _render_assertReportExp (i_sourceColumn=
24  ,i_actualColumn=tst_act
25  ,o_html=0
26  ,o_targetColumn=
27  );
28  IF &i_sourceColumn. EQ '^_' OR &i_sourceColumn. EQ ' ' THEN DO;
29  %** render empty actual column ***;
30  %_render_dataColumn (i_sourceColumn=&i_sourceColumn.
31  ,o_targetColumn=&o_targetColumn.
32  );
33  END;
34  ELSE DO;
35  href = catt ("_", put (scn_id, z3.),'_',put (cas_id, z3.),'_',put (tst_id, z3.));
36  href_exp = catt (href,'_man_exp');
37  %if (&o_html.) %then %do;
38  href_rep = catt (href,'_man_rep.html');
39  %end;
40  IF &i_actualColumn. NE '^_' AND &i_actualColumn. NE ' ' THEN DO;
41  %*** Link to reporting html, if both results exist ***;
42  i_linkColumn = href_rep;
43  i_linkTitle = "&g_nls_reportDetail_020.";
44  END;
45  ELSE DO;
46  %*** Link to expected document, if only one results exists ***;
47  %*** Document type is contained in tst_exp ***;
48  i_linkColumn = catt (href_exp, &i_sourceColumn.);
49  i_linkTitle = "&g_nls_reportDetail_021.";
50  END;
51  %_render_dataColumn (i_sourceColumn=&i_sourceColumn.
52  ,i_linkTitle=i_linkTitle
53  ,i_linkColumn=i_linkColumn
54  ,o_targetColumn=&o_targetColumn.
55  );
56  END;
57 %mend _render_assertReportExp;