mirror of
https://github.com/nabbar/golib.git
synced 2025-12-24 11:51:02 +08:00
Fix statistics in documentation
This commit is contained in:
21
README.md
21
README.md
@@ -6,8 +6,8 @@
|
|||||||
[](https://pkg.go.dev/github.com/nabbar/golib)
|
[](https://pkg.go.dev/github.com/nabbar/golib)
|
||||||
[](https://goreportcard.com/report/github.com/nabbar/golib)
|
[](https://goreportcard.com/report/github.com/nabbar/golib)
|
||||||
[](https://snyk.io/test/github/nabbar/golib)
|
[](https://snyk.io/test/github/nabbar/golib)
|
||||||
[](TESTING.md)
|
[](TESTING.md)
|
||||||
[](TESTING.md)
|
[](TESTING.md)
|
||||||
|
|
||||||
Comprehensive Go library collection providing production-ready packages for cloud services, web infrastructure, data management, security, monitoring, and development utilities. Built for enterprise-grade applications with extensive testing and documentation.
|
Comprehensive Go library collection providing production-ready packages for cloud services, web infrastructure, data management, security, monitoring, and development utilities. Built for enterprise-grade applications with extensive testing and documentation.
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ This library provides building blocks for cloud-native applications, web service
|
|||||||
### Design Philosophy
|
### Design Philosophy
|
||||||
|
|
||||||
1. **Modularity**: Self-contained packages with minimal cross-dependencies
|
1. **Modularity**: Self-contained packages with minimal cross-dependencies
|
||||||
2. **Production-Ready**: Comprehensive testing with 10,964 specs across 127 packages
|
2. **Production-Ready**: Comprehensive testing with 11,818 specs across 131 packages
|
||||||
3. **Performance-First**: Streaming operations, zero-allocation paths, optimized throughput
|
3. **Performance-First**: Streaming operations, zero-allocation paths, optimized throughput
|
||||||
4. **Thread-Safe**: All concurrent operations validated with race detector
|
4. **Thread-Safe**: All concurrent operations validated with race detector
|
||||||
5. **Observable**: Structured logging, Prometheus metrics, health checks, monitoring
|
5. **Observable**: Structured logging, Prometheus metrics, health checks, monitoring
|
||||||
@@ -56,15 +56,16 @@ This library provides building blocks for cloud-native applications, web service
|
|||||||
### Repository Statistics
|
### Repository Statistics
|
||||||
|
|
||||||
```
|
```
|
||||||
Total Packages: 165 (127 with tests, 38 utility/types packages)
|
Total Packages: 165 (131 with tests, 34 utility/types packages)
|
||||||
Documented Packages: 62 packages with individual README.md files
|
Documented Packages: 62 packages with individual README.md files
|
||||||
Test Specifications: 10,964
|
Test Specifications: 11,818
|
||||||
Test Assertions: 21,470
|
Test Assertions: 23,080
|
||||||
Benchmarks: 92
|
Benchmarks: 151
|
||||||
Pending Tests: 18
|
Pending Tests: 18
|
||||||
Average Coverage: 73.9%
|
Skipped Tests: 6
|
||||||
Packages ≥80%: 67/127 (52.8%)
|
Average Coverage: 75.49%
|
||||||
Packages ≥90%: 38/127 (29.9%)
|
Packages ≥80%: 71/131 (54.2%)
|
||||||
|
Packages ≥90%: 43/131 (32.8%)
|
||||||
Go Version: 1.24+ (1.25+ recommended)
|
Go Version: 1.24+ (1.25+ recommended)
|
||||||
Platforms: Linux, macOS, Windows
|
Platforms: Linux, macOS, Windows
|
||||||
Thread Safety: ✅ Zero race conditions
|
Thread Safety: ✅ Zero race conditions
|
||||||
|
|||||||
30
TESTING.md
30
TESTING.md
@@ -34,18 +34,18 @@ Comprehensive testing guide for the `github.com/nabbar/golib` library and all it
|
|||||||
|
|
||||||
```
|
```
|
||||||
Total Packages: 165
|
Total Packages: 165
|
||||||
Packages with Tests: 127 (77.0%)
|
Packages with Tests: 131 (79.4%)
|
||||||
Packages without Tests: 38 (23.0%)
|
Packages without Tests: 34 (20.6%)
|
||||||
|
|
||||||
Test Specifications: 10,964
|
Test Specifications: 11,818
|
||||||
Test Assertions: 21,470
|
Test Assertions: 23,080
|
||||||
Benchmarks: 92
|
Benchmarks: 151
|
||||||
Pending Tests: 18
|
Pending Tests: 18
|
||||||
Skipped Tests: 0
|
Skipped Tests: 6
|
||||||
|
|
||||||
Average Coverage: 73.9%
|
Average Coverage: 75.49%
|
||||||
Packages ≥80%: 67/127 (52.8%)
|
Packages ≥80%: 71/131 (54.2%)
|
||||||
Packages at 100%: 14/127 (11.0%)
|
Packages at 100%: 16/131 (12.2%)
|
||||||
|
|
||||||
Race Conditions: 0 (verified with CGO_ENABLED=1 go test -race)
|
Race Conditions: 0 (verified with CGO_ENABLED=1 go test -race)
|
||||||
Thread Safety: ✅ All concurrent operations validated
|
Thread Safety: ✅ All concurrent operations validated
|
||||||
@@ -55,12 +55,12 @@ Thread Safety: ✅ All concurrent operations validated
|
|||||||
|
|
||||||
| Range | Count | Percentage | Examples |
|
| Range | Count | Percentage | Examples |
|
||||||
|-------|-------|------------|----------|
|
|-------|-------|------------|----------|
|
||||||
| 100% | 14 | 11.1% | errors/pool, logger/gorm, router/authheader, semaphore/sem |
|
| 100% | 16 | 12.2% | errors/pool, logger/gorm, router/authheader, semaphore/sem |
|
||||||
| 90-99% | 24 | 19.0% | atomic, version, size, prometheus/metrics |
|
| 90-99% | 27 | 20.6% | atomic, version, size, prometheus/metrics |
|
||||||
| 80-89% | 29 | 23.0% | ioutils, mail/queuer, context, runner |
|
| 80-89% | 28 | 21.4% | ioutils, mail/queuer, context, runner |
|
||||||
| 70-79% | 18 | 14.3% | cobra, viper, socket/client/* |
|
| 70-79% | 16 | 12.2% | cobra, viper, socket/client/* |
|
||||||
| 60-69% | 10 | 7.9% | config, logger, database/kvmap |
|
| 60-69% | 9 | 6.9% | config, logger, database/kvmap |
|
||||||
| <60% | 31 | 24.6% | archive, aws, httpserver |
|
| <60% | 35 | 26.7% | archive, aws, httpserver |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user