aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/rpcserver/mocks
Commit message (Collapse)AuthorAgeFilesLines
* all/mocks: regenerate with mockery v3Taras Madan2025-07-011-71/+79
|
* all/mocks: updateTaras Madan2025-03-281-0/+119
|
* go.mod: update mockeryTaras Madan2025-02-071-3/+3
|
* pkg/rpcserver: refactor to remove Fatalf callsAleksandr Nogikh2025-01-291-4/+24
| | | | Apply necessary changes to pkg/flatrpc and pkg/manager as well.
* executor: query globs in the test program contextDmitry Vyukov2024-12-111-5/+5
| | | | | | | | | | | | | | | | | We query globs for 2 reasons: 1. Expand glob types in syscall descriptions. 2. Dynamic file probing for automatic descriptions generation. In both of these contexts are are interested in files that will be present during test program execution (rather than normal unsandboxed execution). For example, some files may not be accessible to test programs after pivot root. On the other hand, we create and link some additional files for the test program that don't normally exist. Add a new request type for querying of globs that are executed in the test program context.
* pkg/rpcserver: refactoring in preparation for dynamic interface extractionDmitry Vyukov2024-11-261-5/+5
| | | | | | | | | | | Few assorted changes to reduce future diffs: - add rpcserver.RemoteConfig similar to LocalConfig (there are too many parameters) - add CheckGlobs to requesting additional globs from VMs - pass whole InfoRequest to the MachineChecked callback so that it's possible to read globs information - add per-mode config checking in the manager - add Manager.saveJson helper
* all: regenerate mocksTaras Madan2024-09-101-1/+1
| | | | ./tools/syz-env make generate
* pkg/rpcserver: add unit tests, Manager mocksSabyrzhan Tasbolatov2024-09-091-0/+127
Added more test coverage of the package and created an interface of rpcserver to use it as the dependency (for syz-manager). Also tried to cover with tests a private method handleConn(), though it calls handleRunnerConn which has a separate logic in Handshake(), which within handleConn() unit test we should've mocked. This will require a refactoring of `runners map[int]*Runner` and runner.go in general with a separate interface which we can mock as well. General idea is to have interfaces of Server (rpc), Runner etc. and mock a compound logic like Handshake during a separate public (or private if it has callable, if-else logic) method unit-testing.