Browse Source

tests: Remove `docs` test (#3367)

acheron 10 months ago
parent
commit
be3ab9902f

+ 0 - 11
tests/docs/Anchor.toml

@@ -1,11 +0,0 @@
-[provider]
-cluster = "localnet"
-wallet = "~/.config/solana/id.json"
-
-[programs.localnet]
-errors = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
-
-[scripts]
-test = "yarn run mocha -t 1000000 tests/"
-
-[features]

+ 0 - 8
tests/docs/Cargo.toml

@@ -1,8 +0,0 @@
-[workspace]
-members = [
-    "programs/*"
-]
-resolver = "2"
-
-[profile.release]
-overflow-checks = true

+ 0 - 19
tests/docs/package.json

@@ -1,19 +0,0 @@
-{
-  "name": "errors",
-  "version": "0.30.1",
-  "license": "(MIT OR Apache-2.0)",
-  "homepage": "https://github.com/coral-xyz/anchor#readme",
-  "bugs": {
-    "url": "https://github.com/coral-xyz/anchor/issues"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/coral-xyz/anchor.git"
-  },
-  "engines": {
-    "node": ">=17"
-  },
-  "scripts": {
-    "test": "anchor test"
-  }
-}

+ 0 - 17
tests/docs/programs/docs/Cargo.toml

@@ -1,17 +0,0 @@
-[package]
-name = "docs"
-version = "0.1.0"
-description = "Created with Anchor"
-edition = "2018"
-
-[lib]
-crate-type = ["cdylib", "lib"]
-name = "errors"
-
-[features]
-no-entrypoint = []
-cpi = ["no-entrypoint"]
-idl-build = ["anchor-lang/idl-build"]
-
-[dependencies]
-anchor-lang = { path = "../../../../lang" }

+ 0 - 2
tests/docs/programs/docs/Xargo.toml

@@ -1,2 +0,0 @@
-[target.bpfel-unknown-unknown.dependencies.std]
-features = []

+ 0 - 50
tests/docs/programs/docs/src/lib.rs

@@ -1,50 +0,0 @@
-//! This example enforces the missing documentation lint.
-#![deny(missing_docs)]
-
-use anchor_lang::prelude::*;
-
-declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");
-
-/// Program for testing that the `missing_docs` lint can be applied.
-#[program]
-mod docs {
-    use super::*;
-
-    /// Hello.
-    pub fn hello(_ctx: Context<Hello>) -> Result<()> {
-        err!(MyError::Hello)
-    }
-}
-
-/// Hello accounts.
-#[derive(Accounts)]
-pub struct Hello<'info> {
-    /// Rent sysvar.
-    /// Multi line docs.
-    pub rent: Sysvar<'info, Rent>,
-    /// Composite accounts test.
-    /// Multiple lines supported.
-    /// You can also include "double quotes".
-    pub other: HelloComposite<'info>,
-}
-
-/// Hello accounts.
-#[derive(Accounts)]
-pub struct HelloComposite<'info> {
-    /// Rent sysvar 2.
-    pub rent2: Sysvar<'info, Rent>,
-}
-
-/// MyError.
-#[error_code]
-pub enum MyError {
-    /// test
-    #[msg("This is an error message clients will automatically display")]
-    Hello,
-    /// test2
-    HelloNoMsg = 123,
-    /// test3
-    HelloNext,
-    /// test4
-    HelloCustom,
-}