12.0.2 • Published 8 days ago

@libp2p/interop v12.0.2

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
8 days ago

libp2p.io Discuss codecov CI

Interoperability Tests for libp2p

About

This repository holds interop tests for testing compatibility between different libp2p implementations.

Example - How to run the tests

Create a js file that configures the different types of daemon:

import { interopTests } from '@libp2p/interop'
import type { Daemon, DaemonFactory } from '@libp2p/interop'

async function createGoPeer (options: SpawnOptions): Promise<Daemon> {
  // your implementation here
}

async function createJsPeer (options: SpawnOptions): Promise<Daemon> {
  // your implementation here
}

async function main () {
  const factory: DaemonFactory = {
    async spawn (options: SpawnOptions) {
      if (options.type === 'go') {
        return createGoPeer(options)
      }

      return createJsPeer(options)
    }
  }

  interopTests(factory)
}

main().catch(err => {
  console.error(err)
  process.exit(1)
})

For an example, see the js-libp2p interop test runner.

Install

$ npm i @libp2p/interop

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

12.0.0

8 days ago

12.0.1

8 days ago

12.0.2

8 days ago

11.0.0

3 months ago

10.0.3

4 months ago

10.0.2

5 months ago

10.0.1

5 months ago

9.0.3

5 months ago

10.0.0

5 months ago

9.0.2

9 months ago

9.0.1

9 months ago

9.0.0

9 months ago

7.0.0

1 year ago

7.0.4

1 year ago

7.0.3

1 year ago

7.0.2

1 year ago

7.0.1

1 year ago

7.0.5

1 year ago

8.0.1

1 year ago

8.0.0

1 year ago

5.0.0

1 year ago

6.0.1

1 year ago

6.0.0

1 year ago

6.0.3

1 year ago

6.0.2

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

4.0.2

1 year ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago