()
| 11 | ) |
| 12 | |
| 13 | func createPrometheusMetrics() *PrometheusMetrics { |
| 14 | return &PrometheusMetrics{ |
| 15 | registry: prometheus.NewRegistry(), |
| 16 | totalThreads: prometheus.NewCounter(prometheus.CounterOpts{Name: "frankenphp_total_threads"}), |
| 17 | busyThreads: prometheus.NewGauge(prometheus.GaugeOpts{Name: "frankenphp_busy_threads"}), |
| 18 | queueDepth: prometheus.NewGauge(prometheus.GaugeOpts{Name: "frankenphp_queue_depth"}), |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestPrometheusMetrics_TotalWorkers(t *testing.T) { |
| 23 | m := createPrometheusMetrics() |
no outgoing calls
no test coverage detected