all: stop using src/ dir, make tests reproducible, fix CI
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
module main
|
||||
|
||||
fn main() {
|
||||
println(embedfs)
|
||||
$if bare_map ? {
|
||||
json_file := embedfs['assets/example.json'] or { EmbedFile{} }
|
||||
println(json_file.data.to_string().trim_space())
|
||||
|
@ -1,12 +1 @@
|
||||
EmbedFileSystem{
|
||||
files: {'assets/example.json': EmbedFile{
|
||||
data: embed_file.EmbedFileData{ len: 22, path: "assets/example.json", apath: "", uncompressed: 846284 }
|
||||
meta: EmbedFileMetadata{
|
||||
key: 'assets/example.json'
|
||||
name: 'example.json'
|
||||
ext: 'json'
|
||||
mimetype: 'application/json'
|
||||
}
|
||||
}}
|
||||
}
|
||||
{"some": "JSON data"}
|
||||
|
@ -20,7 +20,7 @@ fn test_mymod() {
|
||||
|
||||
fn test_mymod_bare_map() {
|
||||
oldpwd := os.getwd()
|
||||
expected_out := os.read_file('tests/mymod_test_bare_map.out')!
|
||||
expected_out := os.read_file('tests/mymod_test.out')!
|
||||
os.chdir('tests/mymod')!
|
||||
gen := embedfs.CodeGenerator{
|
||||
path: 'assets'
|
||||
|
@ -1,10 +0,0 @@
|
||||
{'assets/example.json': EmbedFile{
|
||||
data: embed_file.EmbedFileData{ len: 22, path: "assets/example.json", apath: "", uncompressed: 845da4 }
|
||||
meta: EmbedFileMetadata{
|
||||
key: 'assets/example.json'
|
||||
name: 'example.json'
|
||||
ext: 'json'
|
||||
mimetype: 'application/json'
|
||||
}
|
||||
}}
|
||||
{"some": "JSON data"}
|
Reference in New Issue
Block a user