MCPcopy Index your code
hub / github.com/wireservice/csvkit / test_range_notation_open_ended

Method test_range_notation_open_ended

tests/test_cli.py:47–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 'more-header-values,3,stuff', self.headers, column_offset=0))
46
47 def test_range_notation_open_ended(self):
48 self.assertEqual([0, 1, 2], parse_column_identifiers(':3', self.headers))
49
50 target = list(range(3, len(self.headers))) # protect against devs adding to self.headers
51 target.insert(0, 0)
52 self.assertEqual(target, parse_column_identifiers('1,4:', self.headers))
53
54 self.assertEqual(list(range(0, len(self.headers))), parse_column_identifiers('1:', self.headers))

Callers

nothing calls this directly

Calls 1

parse_column_identifiersFunction · 0.90

Tested by

no test coverage detected