OLD | NEW |
---|---|
(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 | |
OLD | NEW |