Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: scripts/slave/unittests/expect_tests/util.py

Issue 355143002: Set coverage path globs on a per-Test basis instead of in main(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 def covers(coverage_path_function):
6 """Allows annotation of a Test generator function with a function that will
7 return a list of coverage patterns which should be enabled during the use of
8 the Test generator function.
9 """
10 def _decorator(func):
11 func._covers = coverage_path_function
Vadim Sh. 2014/06/27 18:06:48 You do hasattr(..., '_covers') somewhere. Mention
iannucci 2014/06/28 08:58:18 Yep I did that
12 return func
13 return _decorator
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698