-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMAR_method_in_out_range.template
43 lines (41 loc) · 1.71 KB
/
MAR_method_in_out_range.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[Test]
[Category("P1")]
[Description("Calling method in Range ${func.name}$.")]
[Property("SPEC", "${suite.name}$.${cls.name}$.${func.name}$ M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MAR")]
[Property("AUTHOR", "AutomaTest Boot, tct@automated")]
public void ${func.name}$_IN_RANGE ()
{
${def_params(parameters=func.parameters)}$
${m_show(mshow=func.arg_init)}$#!
${m_show(mshow=func.init)}$#!
<!--(if func.irange_init)-->
${m_show(mshow=func.irange_init)}$#!
<!--(else)-->
<!--(for arg in filter(func.is_number, func.parameters))-->
arg_${arg.name}$ = 1;
<!--(end)-->
<!--(end)-->
/* CALLING METHOD */
<!--(if func.method_return_type)-->var r = <!--(end)-->${meth_target(func=func, cls=cls)}$.${func.format_name}$(${', '.join([ suite.print_arg(p) for p in func.parameters])}$);
${m_show(mshow=func.arg_shutdown)}$#!
${m_show(mshow=func.shutdown)}$#!
}
public void ${func.name}$_OUT_OF_RANGE ()
{
${def_params(parameters=func.parameters)}$
${m_show(mshow=func.arg_init)}$#!
${m_show(mshow=func.init)}$#!
<!--(if func.orange_init)-->
${m_show(mshow=func.orange_init)}$#!
<!--(else)-->
<!--(for arg in filter(func.is_number, func.parameters))-->
arg_${arg.name}$ = ${suite.type_convert(arg.type)}$.MaxValue;
<!--(end)-->
<!--(end)-->
/* CALLING METHOD */
<!--(if func.method_return_type)-->var r = <!--(end)-->${meth_target(func=func, cls=cls)}$.${func.format_name}$(${', '.join([ suite.print_arg(p) for p in func.parameters])}$);
${m_show(mshow=func.arg_shutdown)}$#!
${m_show(mshow=func.shutdown)}$#!
}