You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To write session related tests for yatt, we need to call entity functions like &yatt:session(); (or it's equivalent $entns->entity_session()) from them. Unfortunately, entity functions are usable only when written in *.yatt, *.ydo or action. And adapting to write such files is normally not a simple task for Perl programmers even who are already good at writing *.t.
So, let's add $factory->invoke_sub_in($location, $args, $sub), which prepares same runtime environment of Web and invoke the $sub. The $sub is invoked like $sub->($dirhandler, $connection).
The text was updated successfully, but these errors were encountered:
To write session related tests for yatt, we need to call entity functions like
&yatt:session();
(or it's equivalent$entns->entity_session()
) from them. Unfortunately, entity functions are usable only when written in*.yatt
,*.ydo
or action. And adapting to write such files is normally not a simple task for Perl programmers even who are already good at writing*.t
.So, let's add
$factory->invoke_sub_in($location, $args, $sub)
, which prepares same runtime environment of Web and invoke the $sub. The $sub is invoked like$sub->($dirhandler, $connection)
.The text was updated successfully, but these errors were encountered: