src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/eval/exception_test.elvts (about) 1 ////////////////////// 2 # Flow introspection # 3 ////////////////////// 4 ~> put ?(return)[reason][type name] 5 ▶ flow 6 ▶ return 7 8 ///////////////////////////////// 9 # ExternalCmdExit introspection # 10 ///////////////////////////////// 11 12 ## Unix ## 13 //only-on unix 14 ~> put ?(false)[reason][type exit-status] 15 ▶ external-cmd/exited 16 ▶ 1 17 18 ## Windows ## 19 //only-on windows 20 ~> put ?(cmd /c exit 1)[reason][type exit-status] 21 ▶ external-cmd/exited 22 ▶ 1 23 24 // TODO: Test killed and stopped commands 25 26 /////////////////////////////// 27 # PipelineError introspection # 28 /////////////////////////////// 29 30 ~> put ?(fail 1 | fail 2)[reason][type] 31 ▶ pipeline 32 ~> count ?(fail 1 | fail 2)[reason][exceptions] 33 ▶ (num 2) 34 ~> put ?(fail 1 | fail 2)[reason][exceptions][0][reason][type] 35 ▶ fail