Help us shape the future of Go! Take the 2026 Go Developer Survey

e2e

command module
v0.0.0-...-bda9561 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 6 Imported by: 0

README

mps | End-to-End Test

This end-to-end test generates random files and sends them to the mps client. It then asks the client to verify each file individually.

Run

Assuming that Go is installed on your system (if not: how to install Go), run:

$ go run main.go

By default, the test generates and sends 100 files. To adjust the number of files, specify it in the command:

$ go run main.go {{n}}

Example (generate and send 1,000 files):

$ go run main.go 1000

Usage

This tool only performs positive tests.

Negative tests can be done manually: run a test then, when the execution of the test pauses (after having sent the files), corrupt one of the files (in ./server/downloads/{{root_hash}}/), and resume the test. The client should automatically detect the discrepancy.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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