Skip to content

refactor: restructure TOON Go implementation and enhance testing framework#7

Merged
SOY4RIAS merged 4 commits into
feature/go-portfrom
feature/cleanup
Nov 7, 2025
Merged

refactor: restructure TOON Go implementation and enhance testing framework#7
SOY4RIAS merged 4 commits into
feature/go-portfrom
feature/cleanup

Conversation

@SOY4RIAS

@SOY4RIAS SOY4RIAS commented Nov 7, 2025

Copy link
Copy Markdown
Owner
  • Updated .gitignore to include new build artifacts and temporary files.
  • Removed obsolete .gitignore.go file.
  • Added conformance testing files and updated documentation to reflect the new structure.
  • Introduced new Go files for encoding and decoding logic, including comprehensive tests.
  • Removed deprecated files and cleaned up the project structure for better maintainability.
  • Updated module name in go.mod to reflect the new repository structure.

This commit lays the groundwork for improved testing and compliance with the TOON specification.

…ework

- Updated .gitignore to include new build artifacts and temporary files.
- Removed obsolete .gitignore.go file.
- Added conformance testing files and updated documentation to reflect the new structure.
- Introduced new Go files for encoding and decoding logic, including comprehensive tests.
- Removed deprecated files and cleaned up the project structure for better maintainability.
- Updated module name in go.mod to reflect the new repository structure.

This commit lays the groundwork for improved testing and compliance with the TOON specification.
- Updated the ToParsedLines function to trim trailing whitespace and leading/trailing newlines while preserving leading spaces/tabs on the first line for validation.
- Reformatted escape character constants for improved readability in constants.go.

These changes enhance code clarity and maintainability.
…tency

- Updated the encoder to sort object keys alphabetically, ensuring deterministic output across runs.
- Implemented semantic comparison in conformance tests to handle field order differences gracefully.
- Resolved previous issues with tab validation and field ordering, resulting in all tests passing (323/323).
- Enhanced documentation to reflect these changes and the rationale behind the technical decisions.

This commit solidifies the Go implementation's compliance with the TOON specification, achieving full conformance and improving overall reliability.
- Updated variable declarations to use short variable declaration syntax for improved readability.
- Removed unnecessary variable assignments in the decoder functions.
- Cleaned up the test file by removing an unused helper function.

These changes enhance code clarity and maintainability across the decoding and parsing components.
@SOY4RIAS SOY4RIAS merged commit 651ca68 into feature/go-port Nov 7, 2025
4 checks passed
@SOY4RIAS SOY4RIAS deleted the feature/cleanup branch November 7, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant