Skip to content

Conversation

@AprupKale
Copy link
Contributor

@AprupKale AprupKale commented Feb 18, 2025

Enable switch statements to support code as follows:

public class Main {
    public static void main(String[] args) {
        int x = 2;
        
        switch (x) {
            case 1:
                System.out.println("One");
                break;
            case 2:
                System.out.println("Two");
                break;
            case 3:
                System.out.println("Three");
                break;
            default:
                System.out.println("Default");
        }
    }
}

@github-actions
Copy link

github-actions bot commented Feb 18, 2025

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
74.37% (+0.42% 🔼)
7510/10098
🟡 Branches
60.74% (+0.35% 🔼)
2519/4147
🟡 Functions
70.24% (+0.79% 🔼)
1336/1902
🟡 Lines
75.3% (+0.36% 🔼)
7080/9403
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / assignmentExpression.test.ts
100% 100% 100% 100%
🟢
... / castExpression.test.ts
100% 100% 100% 100%
🟢
... / switch.test.ts
100% 100% 100% 100%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟡
... / index.ts
70.8% (-3.57% 🔻)
48% (-5.01% 🔻)
91.67% (-3.99% 🔻)
79.3% (-4.94% 🔻)
🟢
... / code-generator.ts
92.24% (-2.17% 🔻)
77.23% (-7.42% 🔻)
95.89% (+2.71% 🔼)
92.33% (-2.42% 🔻)

Test suite run success

1159 tests passing in 64 suites.

Report generated by 🧪jest coverage report action from 91691ad

@AprupKale AprupKale self-assigned this Feb 18, 2025
@AprupKale AprupKale added the enhancement New feature or request label Feb 18, 2025
@AprupKale AprupKale marked this pull request as ready for review February 18, 2025 08:39
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