Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

add several tests

author
Andrey
committer
Louis Pilfold
date (Jun 22, 2026, 3:19 PM +0100) commit cd25b2c3 parent 87dcf27a change-id uuszysou
+74
+13
compiler-core/src/error/snapshots/gleam_core__error__tests__io_copy_directory_error.snap
··· 1 + --- 2 + source: compiler-core/src/error/tests.rs 3 + expression: error 4 + --- 5 + error: File IO failure 6 + 7 + An error occurred while trying to copy this directory to /dest: 8 + 9 + /src 10 + 11 + The error message from the file IO library was: 12 + 13 + Critical error!
+13
compiler-core/src/error/snapshots/gleam_core__error__tests__io_delete_file_error.snap
··· 1 + --- 2 + source: compiler-core/src/error/tests.rs 3 + expression: error 4 + --- 5 + error: File IO failure 6 + 7 + An error occurred while trying to delete this file: 8 + 9 + /file 10 + 11 + The error message from the file IO library was: 12 + 13 + Critical error!
+35
compiler-core/src/error/tests.rs
··· 53 53 Error::HexSessionRevoked 54 54 ); 55 55 } 56 + 57 + fn io_link_file_error() { 58 + let error = Error::FileIo { 59 + kind: FileKind::File, 60 + action: FileIoAction::Link("/dest".into()), 61 + path: "/src".into(), 62 + err: Some("Critical error!".to_owned()), 63 + } 64 + .pretty_string(); 65 + assert_snapshot!(error); 66 + } 67 + 68 + #[test] 69 + fn io_copy_directory_error() { 70 + let error = Error::FileIo { 71 + kind: FileKind::Directory, 72 + action: FileIoAction::Copy("/dest".into()), 73 + path: "/src".into(), 74 + err: Some("Critical error!".to_owned()), 75 + } 76 + .pretty_string(); 77 + assert_snapshot!(error); 78 + } 79 + 80 + #[test] 81 + fn io_delete_file_error() { 82 + let error = Error::FileIo { 83 + kind: FileKind::File, 84 + action: FileIoAction::Delete, 85 + path: "/file".into(), 86 + err: Some("Critical error!".to_owned()), 87 + } 88 + .pretty_string(); 89 + assert_snapshot!(error); 90 + }