Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure DBus.type constructs a valid one #104

Merged
merged 1 commit into from
Mar 27, 2022
Merged

Conversation

mvidner
Copy link
Owner

@mvidner mvidner commented Mar 25, 2022

This is a subtask of #103 but it is separate enough to make sense as a standalone PR.

Previously it was easy to construct an invalid signature, even for trivially bad cases.

Now, make sure DBus.type constructs a valid Single Complete Type, and add DBus.types for constructing a valid Signature (0 or more SCTs)

Add test cases.

The corresponding section of the specification is Type System

Also, DBus::Type was an internal Module and the constructed Class was awkwardly named DBus::Type::Type. Merged them (with a compatibility "symlink")

Previously it was easy to construct an invalid signature,
even for trivially bad cases.

Now, make sure `DBus.type` constructs a valid Single Complete Type,
and add `DBus.types` for constructing a valid Signature (0 or more SCTs).

Add test cases.

The corresponding section of the specification is
https://dbus.freedesktop.org/doc/dbus-specification.html#type-system

Also, `DBus::Type` was an internal Module and the constructed Class
was awkwardly named `DBus::Type::Type`.
Merged them (with a compatibility "symlink")
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 86.38% when pulling d0fd929 on avoid-type-type into 06f762f on master.

@mvidner mvidner merged commit d779e6c into master Mar 27, 2022
@mvidner mvidner deleted the avoid-type-type branch March 27, 2022 08:57
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.

2 participants