0001    public protocol ContextType
Context_.swift:3
  func context(name: String, closure: ContextType -> ())
Context_.swift:6
  func describe(name: String, closure: ContextType -> ())
Context_.swift:9
  func xcontext(name: String, closure: ContextType -> ())
Context_.swift:12
  func xdescribe(name: String, closure: ContextType -> ())
Context_.swift:24
class Context : ContextType, CaseType {
Context_.swift:42
  func context(name:String, closure:ContextType -> ()) {
Context_.swift:48
  func describe(name:String, closure:ContextType -> ()) {
Context_.swift:54
  func xcontext(name:String, closure:ContextType -> ()) {
Context_.swift:60
  func xdescribe(name:String, closure:ContextType -> ()) {
Global.swift:13
public func describe(name:String, closure:ContextType -> ()) {
GlobalContext.swift:4
  func describe(name:String, closure:ContextType -> ()) {
{ 0002 /// Creates a new sub-context 0003 func context(name: String, closure: ContextType -> ()) 0004 0005 /// Creates a new sub-context 0006 func describe(name: String, closure: ContextType -> ()) 0007 0008 /// Creates a new disabled sub-context 0009 func xcontext(name: String, closure: ContextType -> ()) 0010 0011 /// Creates a new disabled sub-context 0012 func xdescribe(name: String, closure: ContextType -> ()) 0013 0014 func before(closure: () -> ()) 0015 func after(closure: () -> ()) 0016 0017 /// Adds a new test case 0018 func it(name: String, closure:() throws -> ()) 0019 0020 /// Adds a disabled test case 0021 func xit(name: String, closure:() throws -> ()) 0022 } 0023 0024 class Context
Context_.swift:27
  private weak var parent: Context?
Context_.swift:36
  init(name:String, disabled: Bool = false, parent: Context? = nil) {
Context_.swift:43
    let context = Context(name: name, parent: self)
Context_.swift:49
    let context = Context(name: name, parent: self)
Context_.swift:55
    let context = Context(name: name, disabled: true, parent: self)
Context_.swift:61
    let context = Context(name: name, disabled: true, parent: self)
GlobalContext.swift:5
    let context = Context(name: name)
: ContextType, CaseType { 0025 let name
Context_.swift:37
    self.name = name
Context_.swift:94
      reporter.addDisabled(name)
Context_.swift:98
    reporter.report(name) { reporter in
:String 0026 let disabled
Context_.swift:38
    self.disabled = disabled
Context_.swift:93
    if disabled {
: Bool 0027 private weak var parent
Context_.swift:39
    self.parent = parent
Context_.swift:83
    parent?.runBefores()
Context_.swift:89
    parent?.runAfters()
: Context? 0028 var cases
Context_.swift:45
    cases.append(context)
Context_.swift:51
    cases.append(context)
Context_.swift:57
    cases.append(context)
Context_.swift:63
    cases.append(context)
Context_.swift:75
    cases.append(Case(name: name, closure: closure))
Context_.swift:79
    cases.append(Case(name: name, disabled: true, closure: closure))
Context_.swift:99
      cases.forEach {
= [CaseType]() 0029 0030 typealias Before
Context_.swift:33
  var befores = [Before]()
= (() -> ()) 0031 typealias After
Context_.swift:34
  var afters = [After]()
= (() -> ()) 0032 0033 var befores
Context_.swift:67
    befores.append(closure)
Context_.swift:84
    befores.forEach { $0() }
= [Before]() 0034 var afters
Context_.swift:71
    afters.append(closure)
Context_.swift:88
    afters.forEach { $0() }
= [After]() 0035 0036 init
Context_.swift:43
    let context = Context(name: name, parent: self)
Context_.swift:49
    let context = Context(name: name, parent: self)
Context_.swift:55
    let context = Context(name: name, disabled: true, parent: self)
Context_.swift:61
    let context = Context(name: name, disabled: true, parent: self)
GlobalContext.swift:5
    let context = Context(name: name)
(name:String, disabled: Bool = false, parent: Context? = nil) { 0037 self.name = name 0038 self.disabled = disabled 0039 self.parent = parent 0040 } 0041 0042 func context(name:String, closure:ContextType -> ()) { 0043 let context = Context(name: name, parent: self) 0044 closure(context) 0045 cases.append(context) 0046 } 0047 0048 func describe(name:String, closure:ContextType -> ()) { 0049 let context = Context(name: name, parent: self) 0050 closure(context) 0051 cases.append(context) 0052 } 0053 0054 func xcontext(name:String, closure:ContextType -> ()) { 0055 let context = Context(name: name, disabled: true, parent: self) 0056 closure(context) 0057 cases.append(context) 0058 } 0059 0060 func xdescribe(name:String, closure:ContextType -> ()) { 0061 let context = Context(name: name, disabled: true, parent: self) 0062 closure(context) 0063 cases.append(context) 0064 } 0065 0066 func before(closure:() -> ()) { 0067 befores.append(closure) 0068 } 0069 0070 func after(closure:() -> ()) { 0071 afters.append(closure) 0072 } 0073 0074 func it(name:String, closure:() throws -> ()) { 0075 cases.append(Case(name: name, closure: closure)) 0076 } 0077 0078 func xit(name: String, closure:() throws -> ()) { 0079 cases.append(Case(name: name, disabled: true, closure: closure)) 0080 } 0081 0082 func runBefores
Context_.swift:83
    parent?.runBefores()
Context_.swift:100
        runBefores()
() { 0083 parent?.runBefores() 0084 befores.forEach { $0() } 0085 } 0086 0087 func runAfters
Context_.swift:89
    parent?.runAfters()
Context_.swift:102
        runAfters()
() { 0088 afters.forEach { $0() } 0089 parent?.runAfters() 0090 } 0091 0092 func run(reporter: ContextReporter) { 0093 if disabled { 0094 reporter.addDisabled(name) 0095 return 0096 } 0097 0098 reporter.report(name) { reporter in 0099 cases.forEach { 0100 runBefores() 0101 $0.run(reporter) 0102 runAfters() 0103 } 0104 } 0105 } 0106 } 0107 0108