MCPcopy Index your code
hub / github.com/plotly/dash / test_flatten_scalar

Function test_flatten_scalar

tests/unit/library/test_grouping.py:24–29  ·  view source on GitHub ↗
(scalar_grouping_size)

Source from the content-addressed store, hash-verified

22
23# Test flatten_grouping and grouping_len
24def test_flatten_scalar(scalar_grouping_size):
25 grouping, size = scalar_grouping_size
26 expected = list(range(size))
27 result = flatten_grouping(grouping)
28 assert expected == result
29 assert len(result) == grouping_len(grouping)
30
31
32def test_flatten_list(list_grouping_size):

Callers

nothing calls this directly

Calls 2

flatten_groupingFunction · 0.90
grouping_lenFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…