 
       )
 
+    filterChildren =  (children) =>
+      return _.filter(children, (c) =>
+        return ((@showTests or c.type is not "func" or not c.name.startsWith("Test")) and
+            (@showPrivate or c.name[0].toLowerCase() != c.name[0]))
+      )
+
     createChildren = (selection) ->
       #console.log "creating new children", selection
       item = selection.append('li')

    @currentPackageDir = null;
    @container = @list[0]


    @eventView = atom.views.getView(atom.workspace)



    @debug = false

    @subscribeTo(@btnShowTests[0], { 'click': (e) =>
      @showTests = !@showTests
      @updatePackageList(@currentPackage())

    })

    @subscribeTo(@btnShowPrivate[0], { 'click': (e) =>
      @showPrivate = !@showPrivate
      @setSelected(@btnShowPrivate, @showPrivate)
      @updatePackageList(@currentPackage())
    })

    @subscribeTo(@btnShowTests[0], { 'click': (e) =>
      @showTests = !@showTests
      @setSelected(@btnShowTests, @showTests)
      @updatePackageList(@currentPackage())
    })

    @subscribeTo(@btnCollapse[0], {'click':(e) =>
