Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 537018c

Browse files
committed
Add tests for objc with inline block
1 parent 8ed9097 commit 537018c

1 file changed

Lines changed: 38 additions & 13 deletions

File tree

VVDocumenterTests/DocumenterTests/VVMethodTestsCode.plist

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,39 @@
5151
<key>source</key>
5252
<string>-(void)whenLinked:(void (^)(void))actionHandler</string>
5353
<key>uniform</key>
54-
<string>-(void)whenLinked:(void (^)(void))actionHandler</string>
54+
<string>-(void)whenLinked:(void(^)(void))actionHandler</string>
5555
<key>result</key>
5656
<string>/**
5757
* &lt;#Description#&gt;
5858
*
5959
* @param actionHandler &lt;#actionHandler description#&gt;
6060
*/</string>
6161
</dict>
62+
<dict>
63+
<key>source</key>
64+
<string>-(void) writeMediasetJSON: (void (^)(void)) uploadCompletionBlock{}</string>
65+
<key>uniform</key>
66+
<string>-(void)writeMediasetJSON:(void(^)(void))uploadCompletionBlock{}</string>
67+
<key>result</key>
68+
<string>/**
69+
* &lt;#Description#&gt;
70+
*
71+
* @param uploadCompletionBlock &lt;#uploadCompletionBlock description#&gt;
72+
*/</string>
73+
</dict>
74+
<dict>
75+
<key>source</key>
76+
<string>-(void) createNewMediaset:(NSString *) collectionName withCompletionBlock: (void (^)(void)) completionBlock;</string>
77+
<key>uniform</key>
78+
<string>-(void)createNewMediaset:(NSString *)collectionName withCompletionBlock:(void(^)(void))completionBlock;</string>
79+
<key>result</key>
80+
<string>/**
81+
* &lt;#Description#&gt;
82+
*
83+
* @param collectionName &lt;#collectionName description#&gt;
84+
* @param completionBlock &lt;#completionBlock description#&gt;
85+
*/</string>
86+
</dict>
6287
</array>
6388
<key>vv_isCFunction</key>
6489
<array>
@@ -192,7 +217,7 @@
192217
<key>source</key>
193218
<string>void print2DList(int rowCount, int (*p)[10]);</string>
194219
<key>uniform</key>
195-
<string>void print2DList(int rowCount, int (*p)[10]);</string>
220+
<string>void print2DList(int rowCount, int(*p)[10]);</string>
196221
<key>result</key>
197222
<string>/**
198223
* &lt;#Description#&gt;
@@ -271,7 +296,7 @@
271296
<key>source</key>
272297
<string>#define ABS(A) ((A) &lt; 0 ? (-(A)) : (A))</string>
273298
<key>uniform</key>
274-
<string>#define ABS(A)((A)&lt; 0 ?(-(A)) :(A))</string>
299+
<string>#define ABS(A)((A)&lt; 0 ?(-(A)):(A))</string>
275300
<key>result</key>
276301
<string>/**
277302
* &lt;#Description#&gt;
@@ -466,7 +491,7 @@ SIAlertViewBackgroundStyleSolid,
466491
<key>source</key>
467492
<string>func Test(input : Int, condition : (Int, String) -&gt; Bool = {(t: Int,k: String) in return true}) -&gt; (Int,Int) {</string>
468493
<key>uniform</key>
469-
<string>func Test(input : Int, condition : (Int, String)-&gt; Bool = {(t: Int,k: String)in return true}) -&gt;(Int,Int){</string>
494+
<string>func Test(input : Int, condition :(Int, String)-&gt; Bool = {(t: Int,k: String)in return true})-&gt;(Int,Int){</string>
470495
<key>result</key>
471496
<string>/**
472497
&lt;#Description#&gt;
@@ -481,7 +506,7 @@ SIAlertViewBackgroundStyleSolid,
481506
<key>source</key>
482507
<string>func URLSession(session: NSURLSession!, task: NSURLSessionTask!, didReceiveChallenge challenge: NSURLAuthenticationChallenge!, completionHandler: ((NSURLSessionAuthChallengeDisposition, NSURLCredential!) -&gt; Void)!) {</string>
483508
<key>uniform</key>
484-
<string>func URLSession(session: NSURLSession!, task: NSURLSessionTask!, didReceiveChallenge challenge: NSURLAuthenticationChallenge!, completionHandler: ((NSURLSessionAuthChallengeDisposition, NSURLCredential!)-&gt; Void)!) {</string>
509+
<string>func URLSession(session: NSURLSession!, task: NSURLSessionTask!, didReceiveChallenge challenge: NSURLAuthenticationChallenge!, completionHandler:((NSURLSessionAuthChallengeDisposition, NSURLCredential!)-&gt; Void)!){</string>
485510
<key>result</key>
486511
<string>/**
487512
&lt;#Description#&gt;
@@ -492,13 +517,13 @@ SIAlertViewBackgroundStyleSolid,
492517
:param: completionHandler &lt;#completionHandler description#&gt;
493518
*/</string>
494519
</dict>
495-
<dict>
496-
<key>source</key>
497-
<string>func makeTuple(a:Int, b:Int, c:Int) -&gt; (sum:Int, product:Int, max:Int) {</string>
498-
<key>uniform</key>
499-
<string>func makeTuple(a:Int, b:Int, c:Int)-&gt;(sum:Int, product:Int, max:Int){</string>
500-
<key>result</key>
501-
<string>/**
520+
<dict>
521+
<key>source</key>
522+
<string>func makeTuple(a:Int, b:Int, c:Int) -&gt; (sum:Int, product:Int, max:Int) {</string>
523+
<key>uniform</key>
524+
<string>func makeTuple(a:Int, b:Int, c:Int)-&gt;(sum:Int, product:Int, max:Int){</string>
525+
<key>result</key>
526+
<string>/**
502527
&lt;#Description#&gt;
503528
504529
:param: a &lt;#a description#&gt;
@@ -507,7 +532,7 @@ SIAlertViewBackgroundStyleSolid,
507532
508533
:returns: &lt;#return value description#&gt;
509534
*/</string>
510-
</dict>
535+
</dict>
511536
</array>
512537
<key>vv_isSwiftEnum</key>
513538
<array>

0 commit comments

Comments
 (0)