Skip to content

feat: add local cached http client#263

Merged
LinuxSuRen merged 1 commit intomasterfrom
feat/cached-http-client
Nov 2, 2023
Merged

feat: add local cached http client#263
LinuxSuRen merged 1 commit intomasterfrom
feat/cached-http-client

Conversation

@LinuxSuRen
Copy link
Owner

a cached client could reduce the network requests

a cached client could reduce the network requests
@LinuxSuRen LinuxSuRen added the enhancement New feature or request label Nov 2, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 2, 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

github-actions bot commented Nov 2, 2023

There are 21 test cases:

API Average Max Min Count Error
POST http://localhost:8080/server.Runner/ConvertTestSuite 2.173339ms 2.173339ms 2.173339ms 1 0
gRPC 127.0.0.1:7070/server.Runner/GetVersion 2.085896ms 2.879035ms 1.218628ms 3 0
POST http://localhost:8080/server.Runner/FunctionsQuery 1.927273ms 1.927273ms 1.927273ms 1 0
gRPC 127.0.0.1:7070/server.Runner/FunctionsQuery 1.910134ms 2.208395ms 1.456577ms 3 0
gRPC 127.0.0.1:7070/server.Runner/FunctionsQueryStream 1.613948ms 2.041418ms 1.040365ms 3 0
POST http://localhost:8080/server.Runner/CreateTestSuite 1.59306ms 1.59306ms 1.59306ms 1 0
POST http://localhost:8080/server.Runner/GetSuites 1.372804ms 1.372804ms 1.372804ms 1 0
POST http://localhost:8080/server.Runner/GenerateCode 1.34353ms 1.34353ms 1.34353ms 1 0
POST http://localhost:8080/server.Runner/ListTestCase 1.233353ms 1.484382ms 982.324µs 2 0
POST http://localhost:8080/server.Runner/GetSuggestedAPIs 1.152333ms 1.152333ms 1.152333ms 1 0
POST http://localhost:8080/server.Runner/GetTestCase 932.312µs 932.312µs 932.312µs 1 0
POST http://localhost:8080/server.Runner/GetVersion 663.716µs 663.716µs 663.716µs 1 0
POST http://localhost:8080/server.Runner/GetStores 650.411µs 650.411µs 650.411µs 1 0
POST http://localhost:8080/server.Runner/UpdateTestSuite 551.225µs 551.225µs 551.225µs 1 0
POST http://localhost:8080/server.Runner/DeleteTestSuite 518.68µs 545.656µs 491.704µs 2 0
POST http://localhost:8080/server.Runner/PopularHeaders 514.488µs 514.488µs 514.488µs 1 0
POST http://localhost:8080/server.Runner/ListConverter 493.478µs 493.478µs 493.478µs 1 0
POST http://localhost:8080/server.Runner/GetTestSuite 483.136µs 483.136µs 483.136µs 1 0
POST http://localhost:8080/server.Runner/GetSecrets 458.491µs 458.491µs 458.491µs 1 0
POST http://localhost:8080/server.Runner/ListCodeGenerator 456.147µs 456.147µs 456.147µs 1 0
tRPC Hello 240.266µs 240.266µs 240.266µs 1 1

@codacy-production
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.01% 93.33%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (6c0cd46) 6103 5369 87.97%
Head commit (1a47555) 6132 (+29) 5394 (+25) 87.97% (-0.01%)

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 (#263) 30 28 93.33%

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

@LinuxSuRen LinuxSuRen merged commit adb8e1f into master Nov 2, 2023
@LinuxSuRen LinuxSuRen deleted the feat/cached-http-client branch November 2, 2023 08:27
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.

1 participant