Skip to content

Commit

Permalink
전처리문 제거 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
gnksbm committed Apr 13, 2024
1 parent a0bf16d commit e70794b
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 34 deletions.
2 changes: 0 additions & 2 deletions Projects/CoreDataService/Sources/DefaultCoreDataService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ public final class DefaultCoreDataService: CoreDataService {
)
container.loadPersistentStores { _, error in
if let error {
#if DEBUG
print(error.localizedDescription)
#endif
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,11 @@ public final class DefaultRegularAlarmRepository: RegularAlarmRepository {
repository.fetchRegularAlarm()
completion()
} catch {
#if DEBUG
print(error.localizedDescription)
#endif
}
},
onError: { error in
#if DEBUG
print(error.localizedDescription)
#endif
}
)
.disposed(by: disposeBag)
Expand Down Expand Up @@ -113,15 +109,11 @@ public final class DefaultRegularAlarmRepository: RegularAlarmRepository {
repository.fetchRegularAlarm()
completion()
} catch {
#if DEBUG
print(error.localizedDescription)
#endif
}
},
onError: { error in
#if DEBUG
print(error.localizedDescription)
#endif
}
)
.disposed(by: disposeBag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,12 @@ public final class DefaultAddRegularAlarmUseCase: AddRegularAlarmUseCase {

public func addNewAlarm(response: RegularAlarmResponse) {
regularAlarmRepository.createRegularAlarm(response: response) {
#if DEBUG
print("Create Completed")
#endif
}
}

public func editAlarm(response: RegularAlarmResponse) {
regularAlarmRepository.updateRegularAlarm(response: response) {
#if DEBUG
print("Update Completed")
#endif
regularAlarmRepository.updateRegularAlarm(response: response) { print("Update Completed")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ public class DefaultRegularAlarmUseCase: RegularAlarmUseCase {

public func removeAlarm(response: RegularAlarmResponse) throws {
regularAlarmRepository.deleteRegularAlarm(response: response) {
#if DEBUG
print("Remove completed")
#endif
}
}

Expand Down Expand Up @@ -104,9 +102,7 @@ public class DefaultRegularAlarmUseCase: RegularAlarmUseCase {
do {
try localNotificationService.removeRegularAlarm(response: response)
} catch {
#if DEBUG
print(error.localizedDescription)
#endif
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ final class AddRegularAlarmViewModel: ViewModel {
response: output.regularAlarm.value
)
default:
#if DEBUG
print("\(String(describing: self)): 잘못된 타이틀")
#endif
}
viewModel.coordinator.finishFlow()
viewModel.regularAlarmEditingService.resetManagedObject()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ public final class RegularAlarmViewModel: ViewModel {
do {
try viewModel.useCase.removeAlarm(response: response)
} catch {
#if DEBUG
print(error.localizedDescription)
#endif
}
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ public final class FavoritesViewModel: ViewModel {
stationId: selectedBusStop.busStopId
)
} catch {
#if DEBUG
print(error.localizedDescription)
#endif
}
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ public final class MockFavoritesRepository: FavoritesRepository {
)
favorites.onNext(oldFavorites)
} catch {
#if DEBUG
print(error, "즐겨찾기 업데이트 실패")
#endif
}
}
public func removeRoute(
Expand All @@ -158,9 +156,7 @@ public final class MockFavoritesRepository: FavoritesRepository {
favorites.onNext(oldFavorites)
}
} catch {
#if DEBUG
print(error, "즐겨찾기 업데이트 실패")
#endif
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions Projects/NetworkService/Sources/EndPoint/EndPoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ extension EndPoint {
let httpBody = try JSONSerialization.data(withJSONObject: body)
urlRequest.httpBody = httpBody
} catch {
#if DEBUG
print(error.localizedDescription)
#endif
}
}
return urlRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public final class DefaultNetworkService: NetworkService {
httpURLResponse.statusCode
)
)
#if DEBUG
if let url = urlRequest.url,
let httpMethod = urlRequest.httpMethod,
let data = urlRequest.httpBody,
Expand All @@ -62,7 +61,6 @@ public final class DefaultNetworkService: NetworkService {
json
)
}
#endif
return
}

Expand Down

0 comments on commit e70794b

Please sign in to comment.