using ClawdDotNet.Core.Instances; namespace ClawdDotNet.Web.Tests.Infrastructure; /// /// A test that only says something where the instance socket is a file. /// /// Under Linux it is a Unix domain socket in the instance directory and thus an /// entry in the file system — it survives the process, it has rights, it can be left /// behind. Under Windows it is a named pipe: no entry, no corpse, nothing /// to clean up. /// /// Letting such tests run along under Windows would mean seeing them green without /// anything having been checked. Hence a skip with a reason instead of a /// silent return: in the report it is then visible that something was not /// checked here. The same pattern as LinuxFactAttribute in the core tests. /// public sealed class SocketFileFactAttribute : FactAttribute { public SocketFileFactAttribute() { if (InstanceEndpoint.UsesNamedPipe) Skip = "Nur dort aussagekräftig, wo der Socket eine Datei ist — " + "unter Windows ist er eine Named Pipe."; } }