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

moosetechnology / Famix-Value / 11854370139

15 Nov 2024 10:13AM UTC coverage: 22.591% (-1.4%) from 24.038%
11854370139

push

github

Gabriel-Darbord
Merge 99bc4b8f0

19 of 253 new or added lines in 12 files covered. (7.51%)

103 existing lines in 11 files now uncovered.

762 of 3373 relevant lines covered (22.59%)

0.23 hits per line

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

0.0
/src/Famix-Value-Types/FamixValueJavaDate.class.st
1
"
2
A representation of Java date types such as `java.util.Date` or `java.sql.Timestamp`.
3
This family of types has a special serialization format: all attributes are transient, and only a `long` is used to measure the distance to the epoch in milliseconds.
4
"
5
Class {
6
        #name : 'FamixValueJavaDate',
7
        #superclass : 'FamixValueSpecialClass',
8
        #category : 'Famix-Value-Types',
9
        #package : 'Famix-Value-Types'
10
}
11

12
{ #category : 'visiting' }
UNCOV
13
FamixValueJavaDate >> acceptValueVisitor: visitor forObject: object [
×
14
        "Skip visiting the attribute, it is added as a constructor argument."
×
15

×
16
        ^ visitor statementBlock
×
17
                  addStatement: (visitor makeVarDeclStatement: object);
×
18
                  yourself
×
19
]
×
20

21
{ #category : 'importing' }
UNCOV
22
FamixValueJavaDate >> importSpecial: rawValue on: importer [
×
23
        "The value is the distance to the epoch in milliseconds, represented with a long."
×
24

×
25
        ^ importer model newOfPrimitiveType
×
26
                  value: rawValue;
×
27
                  type: (importer entityFinder findTypeNamed: 'long')
×
28
]
×
29

30
{ #category : 'converting' }
UNCOV
31
FamixValueJavaDate >> value: date asFASTJavaExpressionOn: visitor [
×
32
        "Add epoch time attribute as constructor argument."
×
33

×
34
        ^ (visitor makeNewExpression: date)
×
35
                  addArgument: (visitor model newLongLiteral primitiveValue:
×
36
                                           date value first value value asString , 'L');
×
37
                  yourself
×
38
]
×
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