Skip to content

refactor(greeter): add testMode constructor with early-return in lock#1094

Open
deepin-wm wants to merge 1 commit into
linuxdeepin:master-backup-20260717from
deepin-wm:refactor/greeter-testmode-lock
Open

refactor(greeter): add testMode constructor with early-return in lock#1094
deepin-wm wants to merge 1 commit into
linuxdeepin:master-backup-20260717from
deepin-wm:refactor/greeter-testmode-lock

Conversation

@deepin-wm

Copy link
Copy Markdown
Contributor

Add a testMode constructor that skips DDM initialization and socket setup. When testMode is active, lock() directly sets the lock state instead of communicating with DDM, allowing unit tests to exercise the lock path without a running daemon.

Extracted from #1046. Ref: WM-29

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @deepin-wm, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: deepin-wm

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Add a testMode constructor that skips DDM initialization and socket
setup. When testMode is active, lock() directly sets the lock state
instead of communicating with DDM, allowing unit tests to exercise
the lock path without a running daemon.

WM-29
@deepin-wm
deepin-wm force-pushed the refactor/greeter-testmode-lock branch from 145866d to 82bbc9b Compare July 2, 2026 11:25
@deepin-bot

deepin-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 0.8.14
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1123

@deepin-bot

deepin-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 0.8.15
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1163

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