Stubber 에서 같은 함수인데 functionAddress 가 다르게 설정되는 문제
// [register]
// arguments type : () -> ()
// return type : ()
// function address : 5003223104
Stubber.register(someClass.some(completion:)) { completion in
completion()
}
#import <objc/runtime.h> | |
void PrintMethodList(Class cls) { | |
printf("// Method List of %s\n", class_getName(cls)); | |
unsigned int outCount; | |
Method *methodList = class_copyMethodList(cls, &outCount); | |
for (unsigned int i=0; i<outCount; i++) { | |
Method m = methodList[i]; | |
SEL sel = method_getName(m); | |
printf("%s\n", sel_getName(sel)); |
// [register]
// arguments type : () -> ()
// return type : ()
// function address : 5003223104
Stubber.register(someClass.some(completion:)) { completion in
completion()
}
구분 | 시간 | 리프트 요금 | 리프트 50% 할인 | 리프트 40% 할인 | 렌탈 요금 | 렌탈 50% 할인 | 리프트 40% 할인 | 군인 요금 | 병특 요금 |
---|---|---|---|---|---|---|---|---|---|
주간권 | 09:00~17:30 | 72,000원 | 36,000원 | 43,200원 | 30,000원 | 15,000원 | 18,000원 | 51,000원 | 58,200원 |
뉴주간권 | 10:30~17:00 | 68,000원 | 34,000원 | 40,800원 | 28,000원 | 14,000원 | 16,800원 | 48,000원 | 54,800원 |
새벽권 | 07:00~11:30 | 51,000원 | 25,500원 | 30,600원 | 25,000원 | 12,500원 | 15,000원 | 38,000원 | 43,100원 |
뉴야간권 | 20:30~02:00 | 60,000원 | 30,000원 | 36,000원 | 25,000원 | 12,500원 | 15,000원 | 42,500원 | 48,500원 |
뉴야심권 | 20:30~04:00 | 68,000원 | 34,000원 | 40,800원 | 28,000원 | 14,000원 | 16,800원 | 48,000원 | 54,800원 |
import RxSwift | |
import class Foundation.NSRecursiveLock | |
extension ObservableType { | |
func limitSubscribe() -> Observable<Element> { | |
return LimitSubscribe<Element>(source: self.asObservable()).asObservable() | |
} | |
} | |
final class LimitSubscribe<Element>: ObservableType { |
included: | |
- PROJECT/ | |
- PROJECT_TESTS/ | |
excluded: | |
- Pods/ | |
opt_in_rules: | |
- attributes | |
- closure_end_indentation |