Skip to content

[C4GT] Schema: Add tests for MaxEncodedSchemaLimitExceeded #312

@vatsa287

Description

@vatsa287

Description

Subtask under : cord-network/community#7

New testcase can be tested under cargo test -p pallet-schema after adding it in the code.

Goals

  • Add tests for MaxEncodedSchemaLimitExceeded for pallet/schema

Expected Outcome

  • Test should assert for MaxEncodedSchemaLimitExceeded being returned properly in all the possible calls.
  • If there are more than one function returning this error code, all of them should be validated either as one test case or as multiple test cases.

Acceptance Criteria

NA

Implementation Details

Look at other test cases, and add a test case for the same.
Ex: check method check_duplicate_schema_creation which validates error code SchemaAlreadyAnchored

Mockups / Wireframes

NA


Product Name

CORD

Organization Name

Dhiway

Domain

Blockchain

Tech Skills Needed

Rust

Mentor(s)

@amarts

Complexity

[Medium]

Category

[Test]

Sub Category

[Beginner friendly]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions