mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-21 23:04:49 +01:00
fix: mark tests as no_run: they require net access
This commit is contained in:
parent
3f2f98a9f2
commit
f41f2c2f9c
2 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
||||||
/// To delete a the fourth character we should send a.
|
/// To delete a the fourth character we should send a.
|
||||||
/// `TextChange { start: 3, end: 4, content: "".into(), hash: None }`
|
/// `TextChange { start: 3, end: 4, content: "".into(), hash: None }`
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```
|
||||||
/// let change = codemp::api::TextChange {
|
/// let change = codemp::api::TextChange {
|
||||||
/// start: 6, end: 11,
|
/// start: 6, end: 11,
|
||||||
/// content: "mom".to_string(), hash: None
|
/// content: "mom".to_string(), hash: None
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
//! The main entrypoint is [`Client::connect`], which establishes an authenticated connection with
|
//! The main entrypoint is [`Client::connect`], which establishes an authenticated connection with
|
||||||
//! a supported remote server and returns a [`Client`] handle to interact with it.
|
//! a supported remote server and returns a [`Client`] handle to interact with it.
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```no_run
|
||||||
//! # async fn main_fn() {
|
//! # async fn main_fn() {
|
||||||
//! let client = codemp::Client::connect(
|
//! let client = codemp::Client::connect(
|
||||||
//! codemp::api::Config::new(
|
//! codemp::api::Config::new(
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
//! A [`Client`] can acquire a [`Workspace`] handle by joining an existing one it can access with
|
//! A [`Client`] can acquire a [`Workspace`] handle by joining an existing one it can access with
|
||||||
//! [`Client::join_workspace`] or create a new one with [`Client::create_workspace`].
|
//! [`Client::join_workspace`] or create a new one with [`Client::create_workspace`].
|
||||||
//!
|
//!
|
||||||
//! ```rust, run
|
//! ```no_run
|
||||||
//! # async fn main_fn() {
|
//! # async fn main_fn() {
|
||||||
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
|
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
|
||||||
//! client.create_workspace("my-workspace").await.expect("failed to create workspace!");
|
//! client.create_workspace("my-workspace").await.expect("failed to create workspace!");
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
//! A [`Workspace`] handle can be used to acquire a [`cursor::Controller`] to track remote [`api::Cursor`]s
|
//! A [`Workspace`] handle can be used to acquire a [`cursor::Controller`] to track remote [`api::Cursor`]s
|
||||||
//! and one or more [`buffer::Controller`] to send and receive [`api::TextChange`]s.
|
//! and one or more [`buffer::Controller`] to send and receive [`api::TextChange`]s.
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```no_run
|
||||||
//! # async fn main_fn() {
|
//! # async fn main_fn() {
|
||||||
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
|
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
|
||||||
//! # client.create_workspace("").await.unwrap();
|
//! # client.create_workspace("").await.unwrap();
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
//! eventual consistency. Each [`api::TextChange`] is translated in a network counterpart that is
|
//! eventual consistency. Each [`api::TextChange`] is translated in a network counterpart that is
|
||||||
//! guaranteed to converge.
|
//! guaranteed to converge.
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```no_run
|
||||||
//! # async fn main_fn() {
|
//! # async fn main_fn() {
|
||||||
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
|
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
|
||||||
//! # client.create_workspace("").await.unwrap();
|
//! # client.create_workspace("").await.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue