mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 12:45:05 +00:00
Major Subsystem Rewrite (Reconciler Mk5) (#217)
This commit is contained in:
committed by
GitHub
parent
8e8291a0bd
commit
fea303ac8b
1
rojo-test/build-tests/plain.txt
Normal file
1
rojo-test/build-tests/plain.txt
Normal file
@@ -0,0 +1 @@
|
||||
This is a bare text file with no project.
|
||||
0
rojo-test/build-tests/plain_gitkeep/.gitkeep
Normal file
0
rojo-test/build-tests/plain_gitkeep/.gitkeep
Normal file
25
rojo-test/build-tests/rbxmx_ref.rbxmx
Normal file
25
rojo-test/build-tests/rbxmx_ref.rbxmx
Normal file
@@ -0,0 +1,25 @@
|
||||
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
|
||||
<Meta name="ExplicitAutoJoints">true</Meta>
|
||||
<External>null</External>
|
||||
<External>nil</External>
|
||||
<Item class="Folder" referent="RBX82C2B70FBD6642A894EFCBA4FF284ADD">
|
||||
<Properties>
|
||||
<string name="Name">Container</string>
|
||||
<BinaryString name="Tags"></BinaryString>
|
||||
</Properties>
|
||||
<Item class="StringValue" referent="RBX42D96C32E905427DBA530A1881C962FD">
|
||||
<Properties>
|
||||
<string name="Name">Target</string>
|
||||
<BinaryString name="Tags"></BinaryString>
|
||||
<string name="Value">Pointed to by ObjectValue</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ObjectValue" referent="RBXB5B6B1FDCC4942FA823B06B7ABA0EEDB">
|
||||
<Properties>
|
||||
<string name="Name">Pointer</string>
|
||||
<BinaryString name="Tags"></BinaryString>
|
||||
<Ref name="Value">RBX42D96C32E905427DBA530A1881C962FD</Ref>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
6
rojo-test/build-tests/txt/default.project.json
Normal file
6
rojo-test/build-tests/txt/default.project.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "txt",
|
||||
"tree": {
|
||||
"$path": "foo.txt"
|
||||
}
|
||||
}
|
||||
1
rojo-test/build-tests/txt/foo.txt
Normal file
1
rojo-test/build-tests/txt/foo.txt
Normal file
@@ -0,0 +1 @@
|
||||
This is a txt file in a project.
|
||||
@@ -31,13 +31,25 @@ gen_build_tests! {
|
||||
json_model_legacy_name,
|
||||
module_in_folder,
|
||||
module_init,
|
||||
plain_gitkeep,
|
||||
rbxm_in_folder,
|
||||
rbxmx_in_folder,
|
||||
server_in_folder,
|
||||
server_init,
|
||||
txt,
|
||||
txt_in_folder,
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn build_plain_txt() {
|
||||
run_build_test("plain.txt");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn build_rbxmx_ref() {
|
||||
run_build_test("rbxmx_ref.rbxmx");
|
||||
}
|
||||
|
||||
fn run_build_test(test_name: &str) {
|
||||
let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
|
||||
let build_test_path = manifest_dir.join("build-tests");
|
||||
|
||||
14
rojo-test/src/snapshots/build_test__plain.txt.snap
Normal file
14
rojo-test/src/snapshots/build_test__plain.txt.snap
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
created: "2019-08-09T00:17:42.253380600Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="StringValue" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">plain</string>
|
||||
<string name="Value">This is a bare text file with no project.</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</roblox>
|
||||
13
rojo-test/src/snapshots/build_test__plain_gitkeep.snap
Normal file
13
rojo-test/src/snapshots/build_test__plain_gitkeep.snap
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
created: "2019-08-09T00:17:42.175575800Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="Folder" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">plain_gitkeep</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</roblox>
|
||||
28
rojo-test/src/snapshots/build_test__rbxmx_ref.rbxmx.snap
Normal file
28
rojo-test/src/snapshots/build_test__rbxmx_ref.rbxmx.snap
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
created: "2019-08-10T07:57:42.835269100Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="Folder" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">rbxmx_ref</string>
|
||||
<BinaryString name="Tags"><![CDATA[]]></BinaryString>
|
||||
</Properties>
|
||||
<Item class="StringValue" referent="1">
|
||||
<Properties>
|
||||
<string name="Name">Target</string>
|
||||
<BinaryString name="Tags"><![CDATA[]]></BinaryString>
|
||||
<string name="Value">Pointed to by ObjectValue</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ObjectValue" referent="2">
|
||||
<Properties>
|
||||
<string name="Name">Pointer</string>
|
||||
<BinaryString name="Tags"><![CDATA[]]></BinaryString>
|
||||
<Ref name="Value">1</Ref>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
14
rojo-test/src/snapshots/build_test__txt.snap
Normal file
14
rojo-test/src/snapshots/build_test__txt.snap
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
created: "2019-08-09T00:22:01.983322Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="StringValue" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">txt</string>
|
||||
<string name="Value">This is a txt file in a project.</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</roblox>
|
||||
Reference in New Issue
Block a user