Skip to content

test(actor): add integration coverage for core actor behaviors#10

Merged
tiannian merged 3 commits intomainfrom
codex/add-test-cases-for-actor
Apr 13, 2026
Merged

test(actor): add integration coverage for core actor behaviors#10
tiannian merged 3 commits intomainfrom
codex/add-test-cases-for-actor

Conversation

@tiannian
Copy link
Copy Markdown
Owner

Motivation

  • Improve test coverage for the actor crate by exercising core mailbox/message/topic flows and the preferred message path.
  • Verify ServiceAddress::into_address forwarding and topic subscribe/publish semantics to prevent regressions in message routing.

Description

  • Add actor/tests/actor_tests.rs which defines a TestActor and message/topic fixtures used across tests.
  • Implement handlers for Add, Get, PreferredAdd, PreferredUsed, and PublishNumber, plus a NumberTopic with TopicEndpoint usage.
  • Add tests covering call + send ordering, the IS_PERFERRED preferred handler path (and readback via PreferredUsed), into_address forwarding from Address<M> to the service mailbox, and one-shot topic subscribe/publish delivery.

Testing

  • Ran cargo test -p serviceless, and the new integration tests all passed (4 integration tests) and crate doc-tests compiled and passed (13 doc-tests); overall test suite succeeded.

Codex Task

@tiannian tiannian merged commit c4b6528 into main Apr 13, 2026
1 check passed
@tiannian tiannian deleted the codex/add-test-cases-for-actor branch April 13, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant