master
1package stopwatch
2
3import (
4 "testing"
5)
6
7func TestStopwatch(t *testing.T) {
8 // Test that Stopwatch() doesn't panic and returns error properly
9 // This will fail in test environment without TTY but should return error
10 err := Stopwatch()
11 if err != nil {
12 t.Logf("Stopwatch() returned error (expected in test environment): %v", err)
13 }
14}