(t *testing.T)
| 315 | } |
| 316 | |
| 317 | func TestServiceName(t *testing.T) { |
| 318 | s := NewIdleService(nil, nil).WithName("test name") |
| 319 | require.Equal(t, "test name", DescribeService(s)) |
| 320 | |
| 321 | ctx := t.Context() |
| 322 | require.NoError(t, s.StartAsync(ctx)) |
| 323 | |
| 324 | // once service has started, BasicService will not allow changing the name |
| 325 | s.WithName("new") |
| 326 | require.Equal(t, "test name", DescribeService(s)) |
| 327 | } |
nothing calls this directly
no test coverage detected