ascendc-whitebox-design

Generate Ascend C white-box test artifacts from operator source parameter dimensions.

11|51|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/hw-native-sys/pypto-lib --skill ascendc-whitebox-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ascendc-whitebox-design
Source: https://github.com/hw-native-sys/pypto-lib/tree/main/.claude/skills/cannbot-skills/ascendc-whitebox-design
Command: npx skills add https://github.com/hw-native-sys/pypto-lib --skill ascendc-whitebox-design

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Ascend C white-box test case generation analyzes operator source to extract parameter dimensions, enumerates parameter combinations, and creates executable white-box test cases. It supports low/medium/high coverage levels and outputs to a structured test directory.

Core Features & Use Cases

  • Automates generation of white-box test cases from operator sources.
  • Enumerates parameter combinations across multiple coverage levels.
  • Produces test artifacts such as path lists, param definitions, test designs, verifications, and pytest skeletons for operator testing.

Quick Start

Provide the operator source path, target platform, and desired coverage level to generate the white-box test suite; output will be written to a directory you specify or default to the operator's tests/whitebox path.

Frequently Asked Questions about ascendc-whitebox-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Ascend C white-box test generation for operators?

To automate Ascend C white-box test generation, provide the operator source path and coverage level. The tool extracts parameter dimensions, enumerates combinations, and outputs executable pytest skeletons with test metadata to a specified directory.

What artifacts are produced when generating white-box test cases for Ascend C operators?

White-box test generation produces param_def.json, path_list.json, test_design.md, verification_report.json, cases.json, and a pytest skeleton. These artifacts provide parameter definitions, test designs, and executable test structures for operator validation.

Can I control the parameter coverage level when enumerating Ascend C operator tests?

Yes, you can control parameter coverage by selecting low, medium, or high coverage modes. The enumeration process adjusts parameter combinations based on the chosen level to match your desired test depth for Ascend C operators.

What inputs do I need to start generating pytest skeletons for operator testing?

You need the operator source path, target platform, and desired coverage level to generate pytest skeletons. The process reads parameter definitions from the source and writes the test suite to a default or custom output directory.

Does white-box test generation work without additional dependencies for Ascend C?

Yes, white-box test generation operates without external dependencies. It directly analyzes the Ascend C operator source to extract parameter dimensions and generates the required test artifacts and pytest skeleton independently.

What is the difference between low and high coverage modes in operator testing?

Low coverage mode enumerates fewer parameter combinations for basic validation, while high coverage mode maximizes parameter dimension combinations for comprehensive testing. Medium coverage provides a balanced approach for Ascend C operator white-box tests.