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:
7
tasks_gen/eval/G0121/seed/blends.tabl.abap
Normal file
7
tasks_gen/eval/G0121/seed/blends.tabl.abap
Normal file
@@ -0,0 +1,7 @@
|
||||
@EndUserText.label : 'Roast total per blend'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
define table {{p}}blends {
|
||||
key client : abap.clnt not null;
|
||||
key blend : abap.char(4) not null;
|
||||
total_kg : abap.dec(15,3);
|
||||
}
|
||||
28
tasks_gen/eval/G0121/seed/roast_seed.clas.abap
Normal file
28
tasks_gen/eval/G0121/seed/roast_seed.clas.abap
Normal file
@@ -0,0 +1,28 @@
|
||||
CLASS {{p}}roast_seed DEFINITION
|
||||
PUBLIC
|
||||
FINAL
|
||||
CREATE PUBLIC.
|
||||
|
||||
PUBLIC SECTION.
|
||||
INTERFACES if_oo_adt_classrun.
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
CLASS {{p}}roast_seed IMPLEMENTATION.
|
||||
METHOD if_oo_adt_classrun~main.
|
||||
DATA lt_lines TYPE STANDARD TABLE OF {{p}}roasts.
|
||||
lt_lines = VALUE #(
|
||||
( client = sy-mandt order_id = '0000000001' blend = 'PILS' quantity_kg = '120.500' )
|
||||
( client = sy-mandt order_id = '0000000002' blend = 'WEIZ' quantity_kg = '80.000' )
|
||||
( client = sy-mandt order_id = '0000000003' blend = 'PILS' quantity_kg = '60.250' )
|
||||
( client = sy-mandt order_id = '0000000004' blend = 'KOLS' quantity_kg = '45.000' )
|
||||
( client = sy-mandt order_id = '0000000005' blend = 'PILS' quantity_kg = '0.000' )
|
||||
( client = sy-mandt order_id = '0000000006' blend = 'WEIZ' quantity_kg = '20.000' )
|
||||
).
|
||||
|
||||
DELETE FROM {{p}}roasts.
|
||||
INSERT {{p}}roasts FROM TABLE @lt_lines.
|
||||
|
||||
out->write( |{ sy-dbcnt } roast lines inserted| ).
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
8
tasks_gen/eval/G0121/seed/roasts.tabl.abap
Normal file
8
tasks_gen/eval/G0121/seed/roasts.tabl.abap
Normal file
@@ -0,0 +1,8 @@
|
||||
@EndUserText.label : 'Roast order line'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
define table {{p}}roasts {
|
||||
key client : abap.clnt not null;
|
||||
key order_id : abap.numc(10) not null;
|
||||
blend : abap.char(4);
|
||||
quantity_kg : abap.dec(15,3);
|
||||
}
|
||||
Reference in New Issue
Block a user