GitXplorerGitXplorer
x

tonic-mock

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
f7408e523437420ff20ab53c85eed21727ddeb34

Add streaming matcher first draft

xxd009642 committed a year ago
Unverified
5e905c72da3644bbd1678214aef605ef617d0093

Work on client streaming

xxd009642 committed a year ago
Unverified
41c0074abb32a80a223726d1bbeb9a6e1bb209e8

Add in Times from wiremock, start design doc

xxd009642 committed a year ago
Unverified
62ff2d990d1fb03689818b26ec7faa228525b16f

Fix random address selection

xxd009642 committed a year ago
Unverified
e1cddf79f87f77749737aa5d415e2c66c2a6f7dd

Make the test pass

xxd009642 committed a year ago
Unverified
bd02c08ca40d29db2267b8fe70bb28906487cb01

Add in some test logs

xxd009642 committed a year ago

README

The README file for this repository.

tonic-mock

Plan

// In your build script add a proc macro attribute to the server mod. 
// This will generate the default Mock server for you
fn main() -> Result<(), Box<dyn std::error::Error>> {
    tonic_build::configure()
        .build_server(true)
        .build_client(true)
        .server_mod_attribute(tonic_mock::Mock) 
        .compile(&["tests/protos/route_guide.proto"], &["tests/protos"])?;
    Ok(())
}

Prior Art