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:
13
tasks_gen/eval/G0111/seed/booking.tabl.asabap
Normal file
13
tasks_gen/eval/G0111/seed/booking.tabl.asabap
Normal file
@@ -0,0 +1,13 @@
|
||||
@EndUserText.label : 'Booking'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}booking {
|
||||
key client : abap.clnt not null;
|
||||
key booking_id : abap.int4 not null;
|
||||
court_id : abap.int4;
|
||||
booking_date : abap.dats;
|
||||
duration_min : abap.int4;
|
||||
fee : abap.dec(15,2);
|
||||
}
|
||||
11
tasks_gen/eval/G0111/seed/court.tabl.asabap
Normal file
11
tasks_gen/eval/G0111/seed/court.tabl.asabap
Normal file
@@ -0,0 +1,11 @@
|
||||
@EndUserText.label : 'Court'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}court {
|
||||
key client : abap.clnt not null;
|
||||
key court_id : abap.int4 not null;
|
||||
court_name : abap.char(40);
|
||||
sport : abap.char(20);
|
||||
}
|
||||
25
tasks_gen/eval/G0111/seed/court_seed.clas.abap
Normal file
25
tasks_gen/eval/G0111/seed/court_seed.clas.abap
Normal file
@@ -0,0 +1,25 @@
|
||||
CLASS {{p}}court_seed DEFINITION PUBLIC FINAL CREATE PUBLIC.
|
||||
PUBLIC SECTION.
|
||||
INTERFACES if_oo_adt_classrun.
|
||||
ENDCLASS.
|
||||
|
||||
CLASS {{p}}court_seed IMPLEMENTATION.
|
||||
METHOD if_oo_adt_classrun~main.
|
||||
DELETE FROM {{p}}booking.
|
||||
DELETE FROM {{p}}court.
|
||||
INSERT {{p}}court FROM TABLE @( VALUE #(
|
||||
( court_id = 1 court_name = 'Center Court' sport = 'TENNIS' )
|
||||
( court_id = 2 court_name = 'North Court' sport = 'TENNIS' )
|
||||
( court_id = 3 court_name = 'Hall A' sport = 'BADMINTON' )
|
||||
( court_id = 4 court_name = 'Hall B' sport = 'SQUASH' ) ) ).
|
||||
INSERT {{p}}booking FROM TABLE @( VALUE #(
|
||||
( booking_id = 1 court_id = 1 booking_date = '20260110' duration_min = 60 fee = '30.00' )
|
||||
( booking_id = 2 court_id = 1 booking_date = '20260115' duration_min = 90 fee = '45.00' )
|
||||
( booking_id = 3 court_id = 2 booking_date = '20260112' duration_min = 60 fee = '30.00' )
|
||||
( booking_id = 4 court_id = 3 booking_date = '20260111' duration_min = 45 fee = '20.00' )
|
||||
( booking_id = 5 court_id = 3 booking_date = '20260120' duration_min = 30 fee = '15.00' )
|
||||
( booking_id = 6 court_id = 4 booking_date = '20251220' duration_min = 60 fee = '25.00' )
|
||||
( booking_id = 7 court_id = 2 booking_date = '20260205' duration_min = 120 fee = '60.00' ) ) ).
|
||||
out->write( sy-dbcnt ).
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
Reference in New Issue
Block a user