Skip to content

Feat: Implement Features.GetRoutes with safe slice copy and corresponding unit test#2

Merged
gjchentw merged 1 commit intoginmills:masterfrom
gjchentw:master
Oct 15, 2025
Merged

Feat: Implement Features.GetRoutes with safe slice copy and corresponding unit test#2
gjchentw merged 1 commit intoginmills:masterfrom
gjchentw:master

Conversation

@gjchentw
Copy link
Contributor

This PR introduces the GetRoutes method for the Features struct and adds comprehensive unit tests to ensure correctness and copy safety.

The GetRoutes method returns a shallow copy of the internal routes slice (gin.RoutesInfo), preventing external modifications from mutating internal state.

@gjchentw gjchentw merged commit 665aaf5 into ginmills:master Oct 15, 2025
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.

1 participant