| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from telemetry import user_story as user_story_module | 5 from telemetry import user_story as user_story_module |
| 6 | 6 |
| 7 | 7 |
| 8 class UserStorySet(object): | 8 class UserStorySet(object): |
| 9 def __init__(self): | 9 def __init__(self): |
| 10 self.user_stories = [] | 10 self.user_stories = [] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 """ Return a string explaining in human-understandable terms what this | 27 """ Return a string explaining in human-understandable terms what this |
| 28 user story represents. | 28 user story represents. |
| 29 Note that this should be a classmethod so benchmark_runner script can | 29 Note that this should be a classmethod so benchmark_runner script can |
| 30 display user stories' names along their descriptions in the list commmand. | 30 display user stories' names along their descriptions in the list commmand. |
| 31 """ | 31 """ |
| 32 if cls.__doc__: | 32 if cls.__doc__: |
| 33 return cls.__doc__.splitlines()[0] | 33 return cls.__doc__.splitlines()[0] |
| 34 else: | 34 else: |
| 35 return '' | 35 return '' |
| 36 | 36 |
| 37 def ShuffleAndFilterUserStorySet(self, finder_options): | |
| 38 pass | |
| 39 | |
| 40 def __iter__(self): | 37 def __iter__(self): |
| 41 return self.user_stories.__iter__() | 38 return self.user_stories.__iter__() |
| 42 | 39 |
| 43 def __len__(self): | 40 def __len__(self): |
| 44 return len(self.user_stories) | 41 return len(self.user_stories) |
| 45 | 42 |
| 46 def __getitem__(self, key): | 43 def __getitem__(self, key): |
| 47 return self.user_stories[key] | 44 return self.user_stories[key] |
| 48 | 45 |
| 49 def __setitem__(self, key, value): | 46 def __setitem__(self, key, value): |
| 50 self.user_stories[key] = value | 47 self.user_stories[key] = value |
| OLD | NEW |