Fix coverage with several contract classes; table annotation and file path checks; clean task dir on write
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
This commit is contained in:
20
tasks_gen/eval/G0105/reference/toll_fee.func.abap
Normal file
20
tasks_gen/eval/G0105/reference/toll_fee.func.abap
Normal file
@@ -0,0 +1,20 @@
|
||||
FUNCTION {{p}}toll_fee
|
||||
IMPORTING
|
||||
iv_distance_km TYPE decfloat34
|
||||
iv_weight_class TYPE i
|
||||
iv_axles TYPE i
|
||||
EXPORTING
|
||||
ev_fee TYPE decfloat34
|
||||
EXCEPTIONS
|
||||
invalid_input.
|
||||
|
||||
TRY.
|
||||
ev_fee = NEW {{p}}toll_calc( )->calculate(
|
||||
iv_distance_km = iv_distance_km
|
||||
iv_weight_class = iv_weight_class
|
||||
iv_axles = iv_axles ).
|
||||
CATCH cx_abap_invalid_value.
|
||||
RAISE invalid_input.
|
||||
ENDTRY.
|
||||
|
||||
ENDFUNCTION.
|
||||
Reference in New Issue
Block a user