Giter Site home page Giter Site logo

Comments (2)

dzmitry-lahoda avatar dzmitry-lahoda commented on July 29, 2024

1

fn empty_string(module1: marine_test_env::module1::ModuleInterface {

is

fn empty_string(module1: marine_test_env::module1::ModuleInterface)

2

let start_data = marine_test_env::service1::modules::db_module::Entry {}; // access to an internal module structure

not sure, i do not need access to internals, to low level

3

v1 and v2 are good enough. in v3 it is not clear order for state updates. it is kind of optimization of running tests, so until there are to many of these no need.

from marine-rs-sdk-test.

ValeryAntopol avatar ValeryAntopol commented on July 29, 2024

@dzmitry-lahoda thank you!

  1. Fixed.
  2. It allows using v2 instead of v1, so gives choice to the user, and does not cost much to implement.
  3. It is not just an optimization. v3 also allows writing utility functions that use structs from marine_test_env, when other versions allow only utility macros. And it is not required to create global services, you can create new services for every test.

from marine-rs-sdk-test.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.