mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Update audit documentation and rules for live syncback enhancements
- Added a new section in `audit.md` for the Live Syncback Pipeline, detailing the plugin encoding, transport, and server handling processes. - Included entries for newly introduced files `encodeHelpers.lua` and `encodeService.lua` in the audit documentation. - Updated the audit checklist to cover live syncback parity and related concerns. - Revised rule MDC files (`atlas-api.mdc`, `atlas-plugin.mdc`, `atlas-dedup.mdc`) to reflect recent changes, including the addition of `encodeHelpers.lua` and clarifications on `SyncbackConfirm`. - Ensured comprehensive coverage of new test suites in the audit documentation. These changes aim to enhance the clarity and accuracy of the audit documentation and rules, aligning them with the latest codebase updates.
This commit is contained in:
parent
49b4d8581f
commit
532425df9e
6 changed files with 356 additions and 97 deletions
|
|
@ -521,64 +521,56 @@ return function()
|
|||
|
||||
describe("ColorSequence", function()
|
||||
it("identical two-keypoint", function()
|
||||
expect(
|
||||
trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)
|
||||
).to.equal(true)
|
||||
expect(trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)).to.equal(true)
|
||||
end)
|
||||
|
||||
it("color within epsilon", function()
|
||||
expect(
|
||||
trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(0.5, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(0.50005, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)
|
||||
).to.equal(true)
|
||||
expect(trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(0.5, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(0.50005, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)).to.equal(true)
|
||||
end)
|
||||
|
||||
it("color beyond epsilon", function()
|
||||
expect(
|
||||
trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(0.5, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(0.6, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)
|
||||
).to.equal(false)
|
||||
expect(trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(0.5, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(0.6, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)).to.equal(false)
|
||||
end)
|
||||
|
||||
it("different keypoint count", function()
|
||||
expect(
|
||||
trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(0.5, Color3.new(0, 1, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)
|
||||
).to.equal(false)
|
||||
expect(trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(0.5, Color3.new(0, 1, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)).to.equal(false)
|
||||
end)
|
||||
|
||||
it("simple constructor identical", function()
|
||||
|
|
@ -588,18 +580,16 @@ return function()
|
|||
end)
|
||||
|
||||
it("time within epsilon", function()
|
||||
expect(
|
||||
trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0.00005, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)
|
||||
).to.equal(true)
|
||||
expect(trueEquals(
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
}),
|
||||
ColorSequence.new({
|
||||
ColorSequenceKeypoint.new(0.00005, Color3.new(1, 0, 0)),
|
||||
ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)),
|
||||
})
|
||||
)).to.equal(true)
|
||||
end)
|
||||
end)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue