Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add an expr function httpReady #214

Merged
merged 1 commit into from Sep 12, 2023
Merged

Conversation

LinuxSuRen
Copy link
Owner

fix #178

@LinuxSuRen LinuxSuRen added enhancement New feature or request backend labels Sep 12, 2023
@codacy-production
Copy link

codacy-production bot commented Sep 12, 2023

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.16% 93.75%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (e21e801) 5438 4543 83.54%
Head commit (1907907) 5484 (+46) 4590 (+47) 83.70% (+0.16%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#214) 64 60 93.75%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@github-actions
Copy link

There are 20 test cases:

API Average Max Min Count Error
gRPC 127.0.0.1:7070/server.Runner/GetVersion 5.355027ms 5.620981ms 5.089073ms 2 0
POST http://localhost:8080/server.Runner/FunctionsQuery 4.648167ms 4.648167ms 4.648167ms 1 0
POST http://localhost:8080/server.Runner/UpdateTestSuite 3.420459ms 3.420459ms 3.420459ms 1 0
POST http://localhost:8080/server.Runner/CreateTestSuite 3.195954ms 3.195954ms 3.195954ms 1 0
POST http://localhost:8080/server.Runner/GetStores 2.951442ms 2.951442ms 2.951442ms 1 0
gRPC 127.0.0.1:7070/server.Runner/FunctionsQueryStream 2.863541ms 2.944843ms 2.78224ms 2 0
gRPC 127.0.0.1:7070/server.Runner/FunctionsQuery 2.686139ms 3.177746ms 2.194532ms 2 0
POST http://localhost:8080/server.Runner/GetTestCase 2.319733ms 2.319733ms 2.319733ms 1 0
POST http://localhost:8080/server.Runner/ConvertTestSuite 2.286533ms 2.286533ms 2.286533ms 1 0
POST http://localhost:8080/server.Runner/ListTestCase 1.89298ms 1.945133ms 1.840827ms 2 0
POST http://localhost:8080/server.Runner/GetSuites 1.799531ms 1.799531ms 1.799531ms 1 0
POST http://localhost:8080/server.Runner/GenerateCode 1.737325ms 1.737325ms 1.737325ms 1 0
POST http://localhost:8080/server.Runner/GetSuggestedAPIs 1.36822ms 1.36822ms 1.36822ms 1 0
POST http://localhost:8080/server.Runner/DeleteTestSuite 1.341821ms 1.481321ms 1.202321ms 2 0
POST http://localhost:8080/server.Runner/PopularHeaders 1.294518ms 1.294518ms 1.294518ms 1 0
POST http://localhost:8080/server.Runner/GetVersion 1.110216ms 1.110216ms 1.110216ms 1 0
POST http://localhost:8080/server.Runner/GetTestSuite 1.101819ms 1.101819ms 1.101819ms 1 0
POST http://localhost:8080/server.Runner/GetSecrets 979.014µs 979.014µs 979.014µs 1 0
POST http://localhost:8080/server.Runner/ListCodeGenerator 765.011µs 765.011µs 765.011µs 1 0
POST http://localhost:8080/server.Runner/ListConverter 640.609µs 640.609µs 640.609µs 1 0

@sonarcloud
Copy link

sonarcloud bot commented Sep 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

There are 20 test cases:

API Average Max Min Count Error
POST http://localhost:8080/server.Runner/FunctionsQuery 4.04024ms 4.04024ms 4.04024ms 1 0
gRPC 127.0.0.1:7070/server.Runner/GetVersion 3.643686ms 4.367543ms 2.919829ms 2 0
POST http://localhost:8080/server.Runner/GetTestCase 2.297622ms 2.297622ms 2.297622ms 1 0
gRPC 127.0.0.1:7070/server.Runner/FunctionsQueryStream 2.149671ms 2.353623ms 1.945719ms 2 0
POST http://localhost:8080/server.Runner/CreateTestSuite 2.146421ms 2.146421ms 2.146421ms 1 0
gRPC 127.0.0.1:7070/server.Runner/FunctionsQuery 2.093371ms 2.423624ms 1.763118ms 2 0
POST http://localhost:8080/server.Runner/DeleteTestSuite 1.951269ms 2.813027ms 1.089511ms 2 0
POST http://localhost:8080/server.Runner/ListTestCase 1.811768ms 1.890219ms 1.733317ms 2 0
POST http://localhost:8080/server.Runner/GetStores 1.581215ms 1.581215ms 1.581215ms 1 0
POST http://localhost:8080/server.Runner/ConvertTestSuite 1.533216ms 1.533216ms 1.533216ms 1 0
POST http://localhost:8080/server.Runner/GetSuites 1.507915ms 1.507915ms 1.507915ms 1 0
POST http://localhost:8080/server.Runner/PopularHeaders 1.286612ms 1.286612ms 1.286612ms 1 0
POST http://localhost:8080/server.Runner/GenerateCode 1.274913ms 1.274913ms 1.274913ms 1 0
POST http://localhost:8080/server.Runner/GetSuggestedAPIs 1.170711ms 1.170711ms 1.170711ms 1 0
POST http://localhost:8080/server.Runner/UpdateTestSuite 1.148411ms 1.148411ms 1.148411ms 1 0
POST http://localhost:8080/server.Runner/GetSecrets 846.108µs 846.108µs 846.108µs 1 0
POST http://localhost:8080/server.Runner/GetVersion 841.609µs 841.609µs 841.609µs 1 0
POST http://localhost:8080/server.Runner/GetTestSuite 796.208µs 796.208µs 796.208µs 1 0
POST http://localhost:8080/server.Runner/ListConverter 671.706µs 671.706µs 671.706µs 1 0
POST http://localhost:8080/server.Runner/ListCodeGenerator 653.006µs 653.006µs 653.006µs 1 0

@LinuxSuRen LinuxSuRen merged commit f22acca into master Sep 12, 2023
12 checks passed
@LinuxSuRen LinuxSuRen deleted the feat/http-ready-func branch September 12, 2023 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support to print all supported expr functions
1 participant