--[[
	Gets a list of all nodes in the tree for which the given callback returns
	true.
]]

function TestPlan:findNodes(callback)
	local results = {}
	self:visitAllNodes(function(node)
		if callback(node) then
			table.insert(results, node)
		end
	end)
	return results
end

return TestPlan
