lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit 3fc1e891026f595032546d2aacb1089bea90a1e6
parent d345463119a661c910eb059b4e1668beb71ed5f2
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed,  3 Jan 2024 13:10:23 +0900

delete exprt_test.go

Diffstat:
Mauth_test.go | 2+-
Dexport_test.go | 16----------------
2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/auth_test.go b/auth_test.go @@ -19,7 +19,7 @@ func TestAuth(t *testing.T) { acr, asw := io.Pipe() asr, acw := io.Pipe() c.s.Auth = func(ctx context.Context, r *request) { - ifcall := r.Ifcall().(*TAuth) + ifcall := r.ifcall.(*TAuth) aqid := Qid{Type: QTAUTH, Vers: 0, Path: ^uint64(0)} r.afid.file = &AuthFile{ Qid: aqid, diff --git a/export_test.go b/export_test.go @@ -1,15 +0,0 @@ -package lib9p - -type Req = request -func (r *Req) Ifcall() Msg { return r.ifcall } -func (r *Req) SetIfcall(m Msg) { r.ifcall = m } -func (r *Req) Ofcall() Msg { return r.ofcall } -func (r *Req) SetOfcall(m Msg) { r.ofcall = m } -func (r *Req) Afid() *Fid { return r.afid } - -type Fid = fid -func (fid *Fid) SetPath(path string) { fid.path = path } -func (fid *Fid) SetUid(uid string) { fid.uid = uid } -func (fid *Fid) File() File { return fid.file } -func (fid *Fid) SetFile(f File) { fid.file = f } -func (fid *Fid) SetOmode(m OpenMode) { fid.omode = m } -\ No newline at end of file