דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/c-testingהנדסה לאחור ו-fuzzing

c-testing

⁨C testing workflow for unit and integration tests: deterministic harnesses, CMake/CTest execution strategy, sanitizer-first debugging, and fuzzing escalation. Use when writing or fixing tests for C (C11+) modules, stabilizing flaky suites, or reproducing memory/UB bugs.⁩

v2026.11.13-21cd5683 התקנות⁦+3⁩ ב-7 ימים39 כוכביםMITסונכרן לפני 11 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/c-testing

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
nJxH1wBDQN…CXxDlSCQ==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילה6bd0ec7f…ea7eb3f4
6bd0ec7fb13c…0bd8ea7eb3f45 קבצים · ⁦6.1 KB⁩
סריקהנמוךממצא אחד
  • קישורים לדומיינים חיצוניים
לסריקה המלאה
מקורgithub.com/AeonDave/malskill/tree/main/coding/c-testing@21cd568

הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.

Pragmatic workflow for reliable C tests and bug-finding.

When to activate

  • Adding unit tests for C functions
  • Building a small test harness around a module
  • Debugging failing tests or memory corruption
  • Enabling sanitizers or fuzzing to reproduce crashes

Core rules

  • Keep unit tests deterministic and isolated.
  • Avoid real network/time in unit tests.
  • Run ASan/UBSan in CI for memory and UB signal.
  • Reproduce failures in the smallest possible command first.
  • Do not hide memory/UB bugs behind test-only flags, retries, or inflated timeouts.
  • Pair with test-driven-development when implementing persistent code or bug fixes test-first.
  • Pair with testing-reliability for fixture/timing anti-patterns and systematic-debugging when the root cause is unclear.

Phase 1 — Reproduce with smallest scope

  • Run the single failing test first (ctest -R ... or direct binary invocation).
  • Capture exact command, seed/input, and environment variables.
  • Eliminate unrelated test noise before debugging.

Phase 2 — Strengthen harness determinism

  • Keep each test independent (no shared mutable global state).
  • Use explicit fixtures/setup-teardown for temp files and state reset.
  • Prefer table-driven tests for parsers and boundary-heavy functions.

Phase 3 — Sanitizer-first diagnosis

  • Run AddressSanitizer for memory corruption/UAF/OOB.
  • Run UndefinedBehaviorSanitizer for integer/shift/null/alignment UB.
  • Use stack-symbolized reports before stepping into debugger.

Phase 4 — CTest execution strategy

  • Label tests (unit, integration, slow, flaky) and run by label.
  • Use --output-on-failure and --rerun-failed in local loops.
  • Add per-test TIMEOUT to avoid hanging pipelines.

Phase 5 — Fuzzing escalation

  • Add libFuzzer target for parser/decoder/validator style APIs.
  • Seed corpus with valid and invalid minimal inputs.
  • Keep fuzz target stateless, deterministic, and side-effect free.

Fast triage checklist

  • Single failing test reproduced in isolation.
  • Failure reproduced under sanitizer build (if memory/UB suspected).
  • Backtrace/symbolization points to root cause function.
  • Regression test added for the fixed bug.
  • Full suite rerun (or label-targeted suite if justified) with no new failures.

Resources

Load on demand:

  • references/harness.md — harness structure, assertions, Unity/cmocka options
  • references/cmake-ctest.md — CMake/CTest patterns, labels, sanitizer presets, MinGW cross-compile
  • references/sanitizers-fuzzing.md — ASan/UBSan usage and a minimal fuzz target outline
  • references/debugging.md — gdb/lldb, Valgrind, MinGW objdump/nm, MSVC dumpbin/WinDbg, ASan env vars

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםלאלא
כותב קבציםלאלא
מריץ פקודות shellכןכן
משתמש ברשתכןכן
משתמש במחבריםלאלא
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

  1. מידעקישור · קישורים לדומיינים חיצוניים

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v2026.11.13-21cd56813 בנוב׳ 202621cd5686bd0ec7fחתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login