tests

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EAPOLTest

func EAPOLTest(t *testing.T, config string) ([]string, int)

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a minimal RADIUS test harness driving the EAP library end-to-end via eapol_test. It uses the library's MemoryStateManager so the integration path exercises the same session store recommended to consumers.

func NewTestServer

func NewTestServer(t *testing.T) *Server

func (*Server) RADIUSSecret

func (s *Server) RADIUSSecret(ctx context.Context, remoteAddr net.Addr) ([]byte, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context)

func (*Server) ServeRADIUS

func (s *Server) ServeRADIUS(w radius.ResponseWriter, r *radius.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL