Slather logo

Coverage for "Branches.m" : 50.00%

(10 of 20 relevant lines covered)

spec/fixtures/fixtures/more_files/Branches.m

1
//
2
//  Branches.m
3
//  fixtures
4
//
5
//  Created by Julian Krumow on 11.10.14.
6
//  Copyright (c) 2014 marklarr. All rights reserved.
7
//
8
9
#import "Branches.h"
10
11
@implementation Branches
12
13
- (void)branches:(BOOL)goIf skipBranches:(BOOL)skipBranches
2x
14
{
15
    if (goIf) {
2x
16
        NSLog(@"foo.");
1x
17
        
18
        if (!skipBranches) {
1x
19
            NSLog(@"not skipped.");
!
20
        }
!
21
    } else {
1x
22
        NSLog(@"bar.");
1x
23
    }
24
    
25
    int i = 5;
2x
26
    if (i == 5) {
2x
27
        return;
2x
28
    }
29
    switch (i) {
!
30
        case 0:
31
            NSLog(@"0");
!
32
            break;
!
33
            
34
        case 1:
35
            NSLog(@"1");
!
36
            break;
!
37
        case 5:
38
            NSLog(@"5");
!
39
            break;
!
40
        default:
41
            break;
!
42
    }
43
}
2x
44
45
@end