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

codellm-devkit / typescript-sdk / 14843627684

05 May 2025 06:36PM UTC coverage: 88.273%. First build
14843627684

Pull #2

github

web-flow
Merge 16f8e9d20 into 2ebd6e0b6
Pull Request #2: Lightweight APIs to analyze Java projects just with it's Symbol Table

179 of 180 new or added lines in 5 files covered. (99.44%)

414 of 469 relevant lines covered (88.27%)

44.36 hits per line

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

1.85
/src/models/java/builders.ts
1
import {addToLookupTable, getFromLookupTable} from "./lookupTable";
69✔
2

3
export function buildMethodDetail(value) {
×
4
    const {type_declaration, signature, callable_declaration} = value;
×
5
// Look up or create a new JCallable
×
6
    let j_callable = getFromLookupTable(type_declaration, signature);
×
7

×
8
    if (!j_callable) {
×
9
        // Create parameters from the callable declaration
×
10
        const parameterString = callable_declaration.split('(')[1]?.split(')')[0] || '';
×
11
        const parameters = parameterString === ''
×
12
            ? []
×
13
            : parameterString.split(',').map(t => ({
×
14
                name: null,
×
15
                type: t.trim(),
×
16
                annotations: [],
×
17
                modifiers: [],
×
18
                start_line: -1,
×
19
                end_line: -1,
×
20
                start_column: -1,
×
21
                end_column: -1
×
22
            }));
×
23

×
24
        // Create a new JCallable
×
25
        j_callable = {
×
26
            signature,
×
27
            is_implicit: true,
×
28
            is_constructor: callable_declaration.includes("<init>"),
×
29
            comments: [],
×
30
            annotations: [],
×
31
            modifiers: [],
×
32
            thrown_exceptions: [],
×
33
            declaration: "",
×
34
            parameters,
×
35
            code: "",
×
36
            start_line: -1,
×
37
            end_line: -1,
×
38
            referenced_types: [],
×
39
            accessed_fields: [],
×
40
            call_sites: [],
×
41
            variable_declarations: [],
×
42
            crud_operations: null,
×
43
            crud_queries: null,
×
44
            cyclomatic_complexity: 0
×
45
        };
×
46

×
47
        // Store in lookup table
×
48
        addToLookupTable(type_declaration, signature, j_callable);
×
49
    }
×
50

×
51
    // Create and return JMethodDetail
×
52
    return {
×
53
        method_declaration: j_callable.declaration,
×
54
        klass: type_declaration,
×
55
        method: j_callable
×
56
    };
57
}
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