Skip to content

refactor(test): use strings.Contains in resume_test - #602

Open
arimu1 wants to merge 1 commit into
alibaba:mainfrom
arimu1:fix/598-strings-contains
Open

refactor(test): use strings.Contains in resume_test#602
arimu1 wants to merge 1 commit into
alibaba:mainfrom
arimu1:fix/598-strings-contains

Conversation

@arimu1

@arimu1 arimu1 commented Jul 30, 2026

Copy link
Copy Markdown

Description

internal/session/resume_test.go defined custom contains / containsSubstring helpers that reimplemented strings.Contains. Replace them with the standard library.

Changes

  • Use strings.Contains at the call site
  • Delete the two local helpers

Fixes #598

Test plan

  • go test ./internal/session/ — ok

Replace custom contains/containsSubstring helpers with the standard
library strings.Contains.

Fixes alibaba#598
@CLAassistant

CLAassistant commented Jul 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

Copy link
Copy Markdown
Contributor

OpenCodeReview: No supported files changed.

@lizhengfeng101

Copy link
Copy Markdown
Collaborator

@arimu1 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

@lizhengfeng101 lizhengfeng101 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

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.

refactor(test): replace custom string helpers with strings.Contains in resume_test.go

3 participants