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

Configure Feed

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

add more tests

author
Andrey
committer
Louis Pilfold
date (Jun 22, 2026, 3:19 PM +0100) commit e26ba0c6 parent cd25b2c3 change-id nzsvomxm
+225
+13
compiler-core/src/error/snapshots/gleam_core__error__tests__io_canonicalise_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 canonicalise this file: 8 + 9 + /file 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_create_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 create this directory: 8 + 9 + /dir 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_find_parent_of_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 find the parent of this directory: 8 + 9 + /dir 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_open_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 open this file: 8 + 9 + /file 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_parse_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 parse this file: 8 + 9 + /file 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_read_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 read this file: 8 + 9 + /file 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_read_metadata_of_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 read metadata of this file: 8 + 9 + /file 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_update_file_permissions_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 update permissions of this file: 8 + 9 + /file 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_write_to_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 write to this file: 8 + 9 + /file 10 + 11 + The error message from the file IO library was: 12 + 13 + Critical error!
+108
compiler-core/src/error/tests.rs
··· 88 88 .pretty_string(); 89 89 assert_snapshot!(error); 90 90 } 91 + 92 + #[test] 93 + fn io_open_file_error() { 94 + let error = Error::FileIo { 95 + kind: FileKind::File, 96 + action: FileIoAction::Open, 97 + path: "/file".into(), 98 + err: Some("Critical error!".to_owned()), 99 + } 100 + .pretty_string(); 101 + assert_snapshot!(error); 102 + } 103 + 104 + #[test] 105 + fn io_parse_file_error() { 106 + let error = Error::FileIo { 107 + kind: FileKind::File, 108 + action: FileIoAction::Parse, 109 + path: "/file".into(), 110 + err: Some("Critical error!".to_owned()), 111 + } 112 + .pretty_string(); 113 + assert_snapshot!(error); 114 + } 115 + 116 + #[test] 117 + fn io_read_file_error() { 118 + let error = Error::FileIo { 119 + kind: FileKind::File, 120 + action: FileIoAction::Read, 121 + path: "/file".into(), 122 + err: Some("Critical error!".to_owned()), 123 + } 124 + .pretty_string(); 125 + assert_snapshot!(error); 126 + } 127 + 128 + #[test] 129 + fn io_create_directory_error() { 130 + let error = Error::FileIo { 131 + kind: FileKind::Directory, 132 + action: FileIoAction::Create, 133 + path: "/dir".into(), 134 + err: Some("Critical error!".to_owned()), 135 + } 136 + .pretty_string(); 137 + assert_snapshot!(error); 138 + } 139 + 140 + #[test] 141 + fn io_write_to_file_error() { 142 + let error = Error::FileIo { 143 + kind: FileKind::File, 144 + action: FileIoAction::WriteTo, 145 + path: "/file".into(), 146 + err: Some("Critical error!".to_owned()), 147 + } 148 + .pretty_string(); 149 + assert_snapshot!(error); 150 + } 151 + 152 + #[test] 153 + fn io_find_parent_of_directory_error() { 154 + let error = Error::FileIo { 155 + kind: FileKind::Directory, 156 + action: FileIoAction::FindParent, 157 + path: "/dir".into(), 158 + err: Some("Critical error!".to_owned()), 159 + } 160 + .pretty_string(); 161 + assert_snapshot!(error); 162 + } 163 + 164 + #[test] 165 + fn io_canonicalise_file_error() { 166 + let error = Error::FileIo { 167 + kind: FileKind::File, 168 + action: FileIoAction::Canonicalise, 169 + path: "/file".into(), 170 + err: Some("Critical error!".to_owned()), 171 + } 172 + .pretty_string(); 173 + assert_snapshot!(error); 174 + } 175 + 176 + #[test] 177 + fn io_update_file_permissions_error() { 178 + let error = Error::FileIo { 179 + kind: FileKind::File, 180 + action: FileIoAction::UpdatePermissions, 181 + path: "/file".into(), 182 + err: Some("Critical error!".to_owned()), 183 + } 184 + .pretty_string(); 185 + assert_snapshot!(error); 186 + } 187 + 188 + #[test] 189 + fn io_read_metadata_of_file_error() { 190 + let error = Error::FileIo { 191 + kind: FileKind::File, 192 + action: FileIoAction::ReadMetadata, 193 + path: "/file".into(), 194 + err: Some("Critical error!".to_owned()), 195 + } 196 + .pretty_string(); 197 + assert_snapshot!(error); 198 + }