Rating | Name | Duplication | Size | Complexity | CRAP |
---|---|---|---|---|---|
C | repository.TestBookingPostgres_GetByRoomId | 0 | 58 | 7 | ? |
B | repository.TestBookingPostgres_Create | 0 | 52 | 7 | ? |
B | repository.TestBookingPostgres_GetById | 0 | 49 | 7 | ? |
B | repository.TestBookingPostgres_Delete | 0 | 37 | 7 | ? |
B | main.main | 0 | 31 | 7 | ? |
A | model.*Booking.UnmarshalJSON | 0 | 17 | 4 | ? |
A | handler.*Handler.InitRoutes | 0 | 11 | 1 | 1 |
A | repository.NewPostgresDB | 0 | 9 | 3 | 12 |
A | repository.*BookingPostgres.Create | 0 | 9 | 2 | 2 |
A | repository.*RoomPostgres.Create | 0 | 9 | 2 | 2 |
A | repository.NewRoomPostgres | 0 | 2 | 1 | 1 |
A | mock_service.*MockRoom.GetAll | 0 | 6 | 1 | ? |
A | mock_service.*MockBooking.Delete | 0 | 5 | 1 | ? |
A | mock_repository.*MockBooking.GetById | 0 | 6 | 1 | ? |
A | mock_repository.*MockRoom.Delete | 0 | 5 | 1 | ? |