• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 1479
92%

Build:
DEFAULT BRANCH: main
Ran 10 Oct 2025 12:41AM UTC
Jobs 1
Files 258
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Oct 2025 12:40AM UTC coverage: 89.199%. Remained the same
1479

push

github

bobzhang
refactor(test): rename is_not to not_same_object and modernize Test API

Improve clarity and consistency of the test API:

- Rename is_not() to not_same_object() for better semantic clarity
  - Old name was ambiguous ("is not" what?)
  - New name clearly indicates it checks referential inequality
  - Added #alias(is_not, deprecated) for backward compatibility

- Modernize Test type definition
  - Change from pub(all) struct T to internal struct Test
  - Add public typealias Test as T for backward compatibility
  - Mark #as_free_fn for Test::new() constructor
  - Update all method signatures to use Test instead of T

- Remove deprecated code
  - Clean up deprecated eq/ne/is_true/is_false functions
  - Remove deprecated bench() method
  - These have built-in alternatives (assert_eq, assert_not_eq, etc.)

- Update dependencies
  - Remove unnecessary bench and json imports from test/moon.pkg.json
  - Keep only required builtin import

- Update all usages across codebase
  - array/array_test.mbt: @test.is_not → @test.not_same_object
  - array/fixedarray_test.mbt: @test.is_not → @test.not_same_object
  - test/test_test.mbt: @test.is_not → @test.not_same_object

Benefits:
- More intuitive API with self-documenting function names
- Backward compatible via alias mechanism
- Cleaner package structure with reduced dependencies
- Better alignment with MoonBit idioms

9307 of 10434 relevant lines covered (89.2%)

192936.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1479.1 10 Oct 2025 12:41AM UTC 259
89.23
GitHub Action Run
Source Files on build 1479
  • Tree
  • List 258
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2ab37513 on github
  • Prev Build on main (#1476)
  • Next Build on main (#1481)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc