(t *testing.T)
| 424 | } |
| 425 | |
| 426 | func TestQueryWorkingSetPoolSingletonInit(t *testing.T) { |
| 427 | // reset the singleton so poolOnce triggers again |
| 428 | poolOnce = sync.Once{} |
| 429 | p = nil |
| 430 | |
| 431 | ws := []sys.MemoryWorkingSetExInformation{{VirtualAddress: 0x1000}} |
| 432 | // just ensure the lazy init path doesn't panic |
| 433 | _ = QueryWorkingSet(windows.CurrentProcess(), ws) |
| 434 | |
| 435 | if p == nil { |
| 436 | t.Error("pool was not initialized by QueryWorkingSet") |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | func TestQueryWorkingSetConcurrentCalls(t *testing.T) { |
| 441 | const pageSize = 4096 |
nothing calls this directly
no test coverage detected