Generate coverages by loop and function

In reply to dave_59:

Can you explain please what you can’t understand ?

I want to cover sequences of ‘1’ and ‘0’ so that it will be clear to the user which sequence was hit.
The sequence should have a dynamic length.

For example

001
001001
01010101