chore: switch stub tests - #2795
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ec44e82. Configure here.
| { | ||
| Assert.That(Regex.IsMatch(stubContent, $@"\b{Regex.Escape(entryPoint)}\s*\("), Is.True, | ||
| $"Switch binding '{entryPoint}' not found in {stubPath}"); | ||
| } |
There was a problem hiding this comment.
New test fails against current stubs
Medium Severity
Stub_ContainsEverySwitchNativeBinding requires every Switch __Internal P/Invoke to appear in sentry_native_stubs.c, but the stubs omit bindings that the Switch assembly still exports, including sentry_attach_file, sentry_attach_bytes, sentry_clear_attachments, sentry_options_set_logger_enabled_when_crashed, and sentry_app_hang_pause. The new EditMode test fails immediately.
Reviewed by Cursor Bugbot for commit ec44e82. Configure here.


So the native bindings and what we have on the stubs does no longer drift.
#skip-changelog