diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-28 00:06:16 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-28 00:06:16 +0900 |
| commit | 1038af98f08f5c16828fabde3d6b559013c6c123 (patch) | |
| tree | 30a4ddf80b15bbc433ede50720cecc35403946fe /dbus/export_test.go | |
| parent | aa2be18f471892bdb103e58cbe850dafb5b6099c (diff) | |
dbus: add tests
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'dbus/export_test.go')
| -rw-r--r-- | dbus/export_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dbus/export_test.go b/dbus/export_test.go new file mode 100644 index 00000000..dff02412 --- /dev/null +++ b/dbus/export_test.go @@ -0,0 +1,13 @@ +package dbus + +import "io" + +// CompareTestNew provides TestNew with comparison access to unexported Proxy fields. +func (p *Proxy) CompareTestNew(path string, session, system [2]string) bool { + return path == p.path && session == p.session && system == p.system +} + +// AccessTestProxySeal provides TestProxy_Seal with access to unexported Proxy seal field. +func (p *Proxy) AccessTestProxySeal() io.WriterTo { + return p.seal +} |
