tests.hamcrest_unit_test.collection.GeneratorForm   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %
Metric Value
dl 0
loc 5
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A _sequence() 0 3 2
1
class GeneratorForm(object):
2
3
    def _sequence(self, *objects):
4
        for i in objects:
5
            yield i
6
7
8
class SequenceForm(object):
9
10
    def _sequence(self, *objects):
11
        return list(objects)
12