src/t_tst_cse.c
static size_t
t_tst_cse_pushTapDetail( lua_State *L, int pos, const char *m )
{
	lua_getfield( L, pos, m );                                     //S: … val
	if (! lua_isnil( L, -1 ))
	{
		if (lua_isboolean( L, -1 ))
			lua_pushfstring( L, "\n%s: %s", m, (lua_toboolean( L, -1 )) ? "True":"False" ); //S: … val str
		else
			lua_pushfstring( L, "\n%s: %s", m, lua_tostring( L, -1 ) ); //S: … val str

		luaL_gsub( L, luaL_checkstring( L, -1 ), "\n", "\n    " );  //S: … val str str
		lua_remove( L, -2 );                                        //S: … val str
		lua_remove( L, -2 );                                        //S: … str
		return 1;
	}
	else
		lua_pop( L, 1 );
	return 0;
}
/**--------------------------------------------------------------------------
 * Add diagnostic output information for Test.Case into a TAP line
 * \param   L     Lua state.
 * \param   pos   position of T.Test.Case on stack (must be positive!).
 * \param   m     the name of the diagnostic field.
 * \lparam  table T.Test.Case Lua table instance.
 * --------------------------------------------------------------------------*/
Add diagnostic output information for Test.Case into a TAP line
\param   L     Lua state.
\param   pos   position of T.Test.Case on stack (must be positive!).
\param   m     the name of the diagnostic field.
\lparam  table T.Test.Case Lua table instance.
Add diagnostic output information for Test . Case into a TAP line \ param L Lua state . \ param pos position of T . Test . Case on stack ( must be positive! ) . \ param m the name of the diagnostic field . \ lparam table T . Test . Case Lua table instance .
static size_t
t_tst_cse_pushTapDetail( lua_State *L, int pos, const char *m )
{
	lua_getfield( L, pos, m );                                     
	if (! lua_isnil( L, -1 ))
	{
		if (lua_isboolean( L, -1 ))
			lua_pushfstring( L, "\n%s: %s", m, (lua_toboolean( L, -1 )) ? "True":"False" );  str
		else
			lua_pushfstring( L, "\n%s: %s", m, lua_tostring( L, -1 ) );  str
		luaL_gsub( L, luaL_checkstring( L, -1 ), "\n", "\n    " );   str str
		lua_remove( L, -2 );                                         str
		lua_remove( L, -2 );                                        
		return 1;
	}
	else
		lua_pop( L, 1 );
	return 0;
}
static size_t t_tst_cse_pushTapDetail ( lua_State * L , int pos , const char * m ) { lua_getfield ( L , pos , m ) ; if ( ! lua_isnil ( L , -1 ) ) { if ( lua_isboolean ( L , -1 ) ) lua_pushfstring ( L , " \n " , m , ( lua_toboolean ( L , -1 ) ) ? " " : " " ) ; else lua_pushfstring ( L , " \n " , m , lua_tostring ( L , -1 ) ) ; luaL_gsub ( L , luaL_checkstring ( L , -1 ) , " \n " , " \n " ) ; lua_remove ( L , -2 ) ; lua_remove ( L , -2 ) ; return 1 ; } else lua_pop ( L , 1 ) ; return 0 ; }
Add diagnostic output information for Test.Case into a TAP line
 \param   L     Lua state.
Add diagnostic output information for Test . Case into a TAP line \ param L Lua state .
//S: … val //S: … val str //S: … val str //S: … val str str //S: … val str //S: … str