Skip to content

Add TODO function and NotImplementedError error#5

Merged
injoonH merged 2 commits into
mainfrom
feat/todo
Jul 27, 2025
Merged

Add TODO function and NotImplementedError error#5
injoonH merged 2 commits into
mainfrom
feat/todo

Conversation

@injoonH

@injoonH injoonH commented Jul 27, 2025

Copy link
Copy Markdown
Owner

Features

  • Add TODO() function and NotImplementedError error.

@injoonH injoonH requested a review from Copilot July 27, 2025 12:28
@injoonH injoonH self-assigned this Jul 27, 2025
@injoonH injoonH added the enhancement New feature or request label Jul 27, 2025

Copilot AI 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.

Pull Request Overview

Adds a TODO() function and NotImplementedError exception class to the stdlib, following Kotlin's pattern for marking unimplemented code sections.

  • Introduces NotImplementedError exception class that extends the standard Error
  • Adds TODO() function with overloads for optional reason parameter
  • Includes comprehensive test coverage and documentation

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/stdlib/common/index.ts Exports the new TODO function and NotImplementedError exception
src/stdlib/common/exceptions/NotImplementedError.ts Implements the NotImplementedError exception class
src/stdlib/common/exceptions/NotImplementedError.spec.ts Test coverage for NotImplementedError
src/stdlib/common/TODO.ts Implements TODO function with function overloads
src/stdlib/common/TODO.spec.ts Test coverage for TODO function
docs/api/core/kotlin-stdlib/kotlin/-t-o-d-o.md API documentation for TODO function
docs/.vitepress/config.mts Adds TODO function to documentation navigation
Comments suppressed due to low confidence (2)

src/stdlib/common/exceptions/NotImplementedError.spec.ts:10

  • The test only verifies the error name but doesn't test the default message. Consider adding a test to verify the default message 'An operation is not implemented.' is thrown when no custom message is provided.
    expect(throwNotImplementedError).toThrowError(

src/stdlib/common/exceptions/NotImplementedError.spec.ts:16

  • Missing test coverage for custom error messages. The NotImplementedError constructor accepts a custom message parameter, but there's no test verifying that custom messages are properly set.
})

@injoonH injoonH merged commit 36579b0 into main Jul 27, 2025
@injoonH injoonH deleted the feat/todo branch July 27, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants