From 97573c4bac4b809aed2b5ff54ed5fee6c6a702d8 Mon Sep 17 00:00:00 2001 From: nabbar Date: Sun, 21 Dec 2025 17:46:31 +0100 Subject: [PATCH] Fix statistics in documentation --- README.md | 21 +++++++++++---------- TESTING.md | 30 +++++++++++++++--------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 50c62d2..5535f16 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ [![GoDoc](https://pkg.go.dev/badge/github.com/nabbar/golib)](https://pkg.go.dev/github.com/nabbar/golib) [![Go Report Card](https://goreportcard.com/badge/github.com/nabbar/golib)](https://goreportcard.com/report/github.com/nabbar/golib) [![Known Vulnerabilities](https://snyk.io/test/github/nabbar/golib/badge.svg)](https://snyk.io/test/github/nabbar/golib) -[![Tests](https://img.shields.io/badge/Tests-10964%20Specs-green)](TESTING.md) -[![Coverage](https://img.shields.io/badge/Coverage-73.9%25-yellow)](TESTING.md) +[![Tests](https://img.shields.io/badge/Tests-11818%20Specs-green)](TESTING.md) +[![Coverage](https://img.shields.io/badge/Coverage-75.49%25-yellow)](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. @@ -47,7 +47,7 @@ This library provides building blocks for cloud-native applications, web service ### Design Philosophy 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 4. **Thread-Safe**: All concurrent operations validated with race detector 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 ``` -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 -Test Specifications: 10,964 -Test Assertions: 21,470 -Benchmarks: 92 +Test Specifications: 11,818 +Test Assertions: 23,080 +Benchmarks: 151 Pending Tests: 18 -Average Coverage: 73.9% -Packages ≥80%: 67/127 (52.8%) -Packages ≥90%: 38/127 (29.9%) +Skipped Tests: 6 +Average Coverage: 75.49% +Packages ≥80%: 71/131 (54.2%) +Packages ≥90%: 43/131 (32.8%) Go Version: 1.24+ (1.25+ recommended) Platforms: Linux, macOS, Windows Thread Safety: ✅ Zero race conditions diff --git a/TESTING.md b/TESTING.md index 5c04867..8062dd6 100644 --- a/TESTING.md +++ b/TESTING.md @@ -34,18 +34,18 @@ Comprehensive testing guide for the `github.com/nabbar/golib` library and all it ``` Total Packages: 165 -Packages with Tests: 127 (77.0%) -Packages without Tests: 38 (23.0%) +Packages with Tests: 131 (79.4%) +Packages without Tests: 34 (20.6%) -Test Specifications: 10,964 -Test Assertions: 21,470 -Benchmarks: 92 +Test Specifications: 11,818 +Test Assertions: 23,080 +Benchmarks: 151 Pending Tests: 18 -Skipped Tests: 0 +Skipped Tests: 6 -Average Coverage: 73.9% -Packages ≥80%: 67/127 (52.8%) -Packages at 100%: 14/127 (11.0%) +Average Coverage: 75.49% +Packages ≥80%: 71/131 (54.2%) +Packages at 100%: 16/131 (12.2%) Race Conditions: 0 (verified with CGO_ENABLED=1 go test -race) Thread Safety: ✅ All concurrent operations validated @@ -55,12 +55,12 @@ Thread Safety: ✅ All concurrent operations validated | Range | Count | Percentage | Examples | |-------|-------|------------|----------| -| 100% | 14 | 11.1% | errors/pool, logger/gorm, router/authheader, semaphore/sem | -| 90-99% | 24 | 19.0% | atomic, version, size, prometheus/metrics | -| 80-89% | 29 | 23.0% | ioutils, mail/queuer, context, runner | -| 70-79% | 18 | 14.3% | cobra, viper, socket/client/* | -| 60-69% | 10 | 7.9% | config, logger, database/kvmap | -| <60% | 31 | 24.6% | archive, aws, httpserver | +| 100% | 16 | 12.2% | errors/pool, logger/gorm, router/authheader, semaphore/sem | +| 90-99% | 27 | 20.6% | atomic, version, size, prometheus/metrics | +| 80-89% | 28 | 21.4% | ioutils, mail/queuer, context, runner | +| 70-79% | 16 | 12.2% | cobra, viper, socket/client/* | +| 60-69% | 9 | 6.9% | config, logger, database/kvmap | +| <60% | 35 | 26.7% | archive, aws, httpserver | ---