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:
Kral
2026-10-03 08:44:35 +02:00
parent fb576b0954
commit 03ab36149e
388 changed files with 28620 additions and 339 deletions

View 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.