Lines Matching full:leading
38 # @leading: any leading whitespace before the executable path
45 def test(name, size, good=True, leading="", root="./", target="/perl", argument
54 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg)
69 buf=hashbang + leading + root + middle + target + arg + newline
120 # Same as above, but with leading whitespace.
121 test(name="exact-space", size=SIZE, good=False, leading=" ")
125 # A good path, but it gets truncated due to leading whitespace.
126 test(name="truncated", size=SIZE+17, good=False, leading=" " * 19)
134 test(name="newline-prefix", size=SIZE-1, good=False, leading="\n",
141 test(name="test.pl", size=439, leading=" ",
160 # One byte under with whitespace leading. leaving wenline visible.
161 test(name="one-under-leading", size=SIZE-1, leading=" ")
162 # One byte under with whitespace leading and as arg. leaving newline visible.
163 test(name="one-under-leading-trunc-arg", size=SIZE-1, leading=" ", arg=" ")
167 test(name="two-under-leading", size=SIZE-2, leading=" ")
168 test(name="two-under-leading-trunc-arg", size=SIZE-2, leading=" ", arg=" ")
172 test(name="two-under-leading", size=int(SIZE/2), leading=" ")
173 test(name="two-under-lead-trunc-arg", size=int(SIZE/2), leading=" ", arg=" ")