瀏覽代碼

add codecov badge

ibireme 9 年之前
父節點
當前提交
1150ad356f
共有 2 個文件被更改,包括 2 次插入13 次删除
  1. 2 2
      README.md
  2. 0 11
      YYModelTests/YYTestModelMapper.m

+ 2 - 2
README.md

@@ -6,8 +6,8 @@ YYModel <a href="#中文介绍">中文介绍</a>
 [![CocoaPods](http://img.shields.io/cocoapods/v/YYModel.svg?style=flat)](http://cocoapods.org/?q= YYModel)&nbsp;
 [![CocoaPods](http://img.shields.io/cocoapods/p/YYModel.svg?style=flat)](http://cocoapods.org/?q= YYModel)&nbsp;
 [![Support](https://img.shields.io/badge/support-iOS%206%2B%20-blue.svg?style=flat)](https://www.apple.com/nl/ios/)&nbsp;
-[![Build Status](https://travis-ci.org/ibireme/YYModel.svg?branch=master)](https://travis-ci.org/ibireme/YYModel)
-
+[![Build Status](https://travis-ci.org/ibireme/YYModel.svg?branch=master)](https://travis-ci.org/ibireme/YYModel)&nbsp;
+[![codecov.io](https://codecov.io/github/ibireme/YYModel/coverage.svg?branch=master)](https://codecov.io/github/ibireme/YYModel?branch=master)
 
 High performance model framework for iOS.<br/>
 (It's a component of [YYKit](https://github.com/ibireme/YYKit))

+ 0 - 11
YYModelTests/YYTestModelMapper.m

@@ -253,15 +253,4 @@
     XCTAssertTrue([[model.mArray firstObject] isKindOfClass:[YYTestPropertyMapperModelAuto class]]);
 }
 
-- (void)testForCodeCoverage {
-    Class cls = NSClassFromString(@"_YYModelPropertyMeta");
-    [cls new];
-    
-    cls = NSClassFromString(@"_YYModelMeta");
-    [cls new];
-    
-    cls = NSClassFromString(@"YYClassInfo");
-    [cls new];
-}
-
 @end