(t *testing.T)
| 27 | ) |
| 28 | |
| 29 | func TestJSONStatsCounters(t *testing.T) { |
| 30 | st := NewJSONStats() |
| 31 | |
| 32 | st.IncFramesReceived() |
| 33 | st.IncFramesReceived() |
| 34 | st.SetConnected(1) |
| 35 | |
| 36 | require.Equal(t, int64(2), st.framesReceived.Load()) |
| 37 | require.Equal(t, int64(1), st.connected.Load()) |
| 38 | } |
| 39 | |
| 40 | func TestJSONStatsHTTPEndpoint(t *testing.T) { |
| 41 | st := NewJSONStats() |
nothing calls this directly
no test coverage detected
searching dependent graphs…