Skip to content

Commit 5f906ca

Browse files
committed
imageAddress type table
1 parent f44b6ae commit 5f906ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Sources/_TestDiscovery/TestContentRecord.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ extension DiscoverableAsTestContent where Self: ~Copyable {
6666
public struct TestContentRecord<T>: Sendable where T: DiscoverableAsTestContent & ~Copyable {
6767
/// The base address of the image containing this instance, if known.
6868
///
69+
/// The type of this pointer is platform-dependent:
70+
///
71+
/// | Platform | Pointer Type |
72+
/// |-|-|
73+
/// | macOS, iOS, watchOS, tvOS, visionOS | `UnsafePointer<mach_header64>` |
74+
/// | Linux, FreeBSD, Android | `UnsafePointer<ElfW_Ehdr>` |
75+
/// | OpenBSD | `UnsafePointer<Elf_Ehdr>` |
76+
/// | Windows | `HMODULE` |
77+
///
6978
/// On platforms such as WASI that statically link to the testing library, the
7079
/// value of this property is always `nil`.
7180
///

0 commit comments

Comments
 (0)