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

mattonem / PharoJS / 13784210198

11 Mar 2025 09:06AM UTC coverage: 59.622% (-1.0%) from 60.626%
13784210198

push

github

mattonem
wtf

2 of 2 new or added lines in 1 file covered. (100.0%)

537 existing lines in 12 files now uncovered.

12573 of 21088 relevant lines covered (59.62%)

0.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Pharo/PharoJs-Base-JS-CoreLibraries-Tests/PjUndefinedObjectTest.class.st
1
Class {
2
        #name : 'PjUndefinedObjectTest',
3
        #superclass : 'PjBridgeTestCase',
4
        #category : 'PharoJs-Base-JS-CoreLibraries-Tests-Objects',
5
        #package : 'PharoJs-Base-JS-CoreLibraries-Tests',
6
        #tag : 'Objects'
7
}
8

9
{ #category : 'tests' }
UNCOV
10
PjUndefinedObjectTest >> testNilCannotBeReplaced [
×
UNCOV
11

×
UNCOV
12
        self evalBlock: [
×
UNCOV
13
                window at: #originalNil put: PjUndefinedObject uniqueInstance ].
×
UNCOV
14
        self
×
UNCOV
15
                should: [
×
UNCOV
16
                self evalBlock: [ PjUndefinedObject uniqueInstance: #( 42 ) ] ]
×
UNCOV
17
                raise: Error.
×
UNCOV
18
        self assertBlock: [
×
UNCOV
19
                (window at: #originalNil) == PjUndefinedObject uniqueInstance ]
×
UNCOV
20
]
×
21

22
{ #category : 'tests' }
UNCOV
23
PjUndefinedObjectTest >> testNilObjectDoesNotLeak [
×
UNCOV
24
        self assertBlock: [
×
UNCOV
25
                nil value == nil ].
×
UNCOV
26
        self assertBlock: [ nil yourself == nil ]
×
UNCOV
27
]
×
28

29
{ #category : 'tests' }
UNCOV
30
PjUndefinedObjectTest >> testNilStructureCannotChange [
×
UNCOV
31

×
UNCOV
32
        self should: [self evalBlock: [ nil at: #newProperty put: 42 ]] raise: Error.
×
UNCOV
33
        self assert: [ nil at: #newProperty ] evaluatesTo: nil.
×
UNCOV
34

×
UNCOV
35
]
×
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

© 2026 Coveralls, Inc