[Pdx-pm] Test::Builder calling convention

Michael G Schwern schwern at pobox.com
Tue Mar 17 21:13:47 PDT 2009


benh wrote:
> On Tue, Mar 17, 2009 at 5:20 PM, Michael G Schwern <schwern at pobox.com> wrote:
>> benh wrote:
>>> If we decupple the display then we can essentually template out any
>>> given data to be TAP. That said what would you want this to look like
>>> as data?
>>>
>>> my $data = {
>>>  tests => [
>>>   { pass => 0, have => 'foo', want => 'bar', file => 't/foo.t', line => 23 },
>>>   { pass => 0, msg => 'Failed test in t/foo.t at line 23.' }
>>>  ],
>>>  msg => 'I like pie',
>>> };
>> That loses order.  It would have to be more like this:
>>
>>  my @data = [
>>      { pass => 0, have => 'foo', want => 'bar', file => 't/foo.t', line => 23 },
>>      { pass => 0, msg => 'Failed test in t/foo.t at line 23.' },
>>      { msg => 'I like pie' },
>>  ];
>>
> 
> I think that I miss understood then, It seems that you were trying to
> imply that there would be a need to delever some notation that was not
> in the stream of tests. I can see the need to have in line msg's, but
> does this point to #4, notes about the the testing stream?

How do you mean?  Meta information about the stream as a whole?  Like the date
and time and Perl version and stuff?



-- 
39. Not allowed to ask for the day off due to religious purposes, on the
    basis that the world is going to end, more than once.
    -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
           http://skippyslist.com/list/


More information about the Pdx-pm-list mailing list