Skip to content

Conversation

@JGuinegagne
Copy link
Contributor

Add unit tests for extensionapi.

Coverage for internal/extensionapi went from 0% to 90.1%

ok      github.com/jupyter-ai-contrib/jupyter-k8s/internal/extensionapi 0.028s  coverage: 90.1% of statements

func getWorkspaceOwner(workspace *workspacev1alpha1.Workspace) string {
// Look for owner annotation
if workspace.Annotations != nil {
if workspace != nil && workspace.Annotations != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

when is this nil?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It shouldn't in the current code path where this method is used. It might change though and I would prefer to keep a nil-pointer check.

@JGuinegagne JGuinegagne merged commit fe7fc5d into jupyter-infra:main Oct 27, 2025
5 checks passed
earaghbidikashani pushed a commit to earaghbidikashani/jupyter-k8s-infra that referenced this pull request Oct 28, 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.

4 participants