summaryrefslogtreecommitdiff
path: root/internal/ingester/pushgateway_test.go
blob: 55fc21364852df87abfe424bef444fe12312a037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package ingester

import (
	"testing"

	"epimetheus/internal/metrics"
)

func TestNewPushgatewayIngester(t *testing.T) {
	ingester := NewPushgatewayIngester()

	// Verify the ingester was created (value type, so no nil check needed)
	_ = ingester
}

func TestPushgatewayIngester_Type(t *testing.T) {
	// Test that we can create and use the ingester
	collectors := metrics.NewCollectors()
	ingester := NewPushgatewayIngester()

	// The ingester should work with collectors
	if collectors.RequestsTotal == nil {
		t.Error("Collectors not initialized properly")
	}

	// Verify ingester is the correct type
	_ = ingester
}