( source_info )
凡例
| → | 対応コードあり |
| → | 直接対応していないが代替の書き方あり |
| → | 対応コードなし |
| - | 未確認 |
| ( .. ) | ローカライズまだ |
| Example | Python pytest |
C++ GoogleTest |
Swift Testing |
Kotlin jUnit |
Bash bats |
|---|---|---|---|---|---|
| ( get_executed_command_path ) | sys.argv[0] | - | - | - | - |
| ( get_source_file_path ) | __file__ | - | - | - | - |
| ( get_module_name ) | __name__ | - | - | - | - |
| ( get_current_directory ) | os.getcwd() | - | - | - | - |
| ( get_current_line_number ) | inspect.currentframe().f_lineno | - | - | - | - |
| ( get_caller_line_number ) | inspect.currentframe().f_back.f_lineno | - | - | - | - |
| ( get_current_function_name ) | inspect.currentframe().f_code.co_name | - | - | - | - |
| ( get_caller_function_name # <--- this funcname ) | inspect.currentframe().f_back.f_code.co_name | - | - | - | - |
| ( get_current_file_name ) | inspect.currentframe().f_code.co_filename | - | - | - | - |
| ( get_caller_file_name ) | inspect.currentframe().f_back.f_code.co_filename | - | - | - | - |