Runtime Info

Legend
→Has corresponding code
→No direct match, but an alternative exists
→No corresponding code
-TODO
( .. )Not localized
Feature Example Python
pytest
PHP
PHPUnit
Swift
Testing
Csharp
xunit
Bash
bats
Powershell
pester
C++
GoogleTest
JavaScript
Jest
Kotlin
jUnit
Source file info Get executed command path → → - - → → - - -
Get source file path → → - - → → - - -
Get source directory path → → - - - → - - -
( get_executed_interpreter_path ) → → - - - → - - -
( get_module_name ) → - - - - - - - -
( get_current_directory ) → → - - - → - - -
( get_current_line_number ) → - - - - - - - -
( get_caller_line_number ) → - - - - - - - -
( get_current_function_name ) → - - - - → - - -
( get_caller_function_name ) → - - - - → - - -
( get_current_file_name ) → - - - - - - - -
( get_caller_file_name ) → - - - - - - - -
( execute_when_its_main ) - → - - - - - - -
( get_executed_command_path_when_called_from_another_script ) - - - - - → - - -
( get_source_file_path_when_called_from_another_script ) - - - - - → - - -
( get_current_file_path ) - - - - - → - - -
( get_caller_file_path ) - - - - - → - - -
( introspection ) ( list_member_of_object ) → - - - - - - - -
( reflection ) ( run_method_by_name_string ) → - - - - - - - -
( system_info ) ( get_current_user_name ) → - - - → - - - -
( get_hostname_short ) → - - - → - - - -
( get_hostname_full ) → - - - → - - - -
( get_ip_address_of_current_host ) → - - - → - - - -
( resolve_ip_address_from_hostname ) → - - - → - - - -