Repository navigation
Conversation
…n testlib declares the test types Variant classes extend the enum class, so a variant can be passed where the enum is expected (e.g. Timer.new(TimerMode.Repeating)). docgen runs headless, registers the test types, declares the assert_throws global of the test harness, and the entity helpers return V<Entity>.
…num-variants-docgen-testlib
…num-variants-docgen-testlib # Conflicts: # crates/lad_backends/lua_language_server_lad_backend/src/convert/generics.rs
…num-variants-docgen-testlib
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #512. Addresses #655 and part of #658.
---@class time.TimerMode.Once : time.TimerMode, bms.EnumVariantRef, generic enums included), soTimer.new(TimerMode.Repeating)type-checks. Variants inherit the enum's fields and methods (the trade-off listed in the issue).docgenruns headless (WinitPlugindisabled,WgpuSettings { backends: None }).-- testlibregisters the test types (test_utils::test_data::register_test_types: components, resources, bundles,TestAsset).-- testlibwritesassets/definitions/test_harness.luadeclaring theassert_throwsglobal._make_invalid_entity,_make_placeholder_entity,_entity_from_indexand_get_entity_with_test_componentreturnV<Entity>.Not in this PR: #659 (CI check).
Tests:
ladfile_builder/ladfile/lua_language_server_lad_backend/mdbook_lad_preprocessor(fixtures blessed),script_tests -- entity,cargo run --example docgen -- testlibheadless.