The ar_cuit function is a specialized utility within the mock-jutsu library designed to generate realistic Argentinian CUIT (Clave Única de Identificación Tributaria) numbers. As a cornerstone for developers working on financial, payroll, or administrative software for the South American market, this function produces 11-digit identifiers that strictly adhere to the official formatting and validation rules used by the Argentinian tax authority. By integrating ar_cuit into your development workflow, you can ensure that your test data remains consistent with real-world requirements without compromising sensitive user information.
At its technical core, the ar_cuit generator utilizes the MOD-11 algorithm to calculate the final check digit, ensuring that every generated string is mathematically valid. The output follows the standard regional format, such as 20-12345678-9, where the initial two digits represent the entity type (such as individuals or companies), followed by an eight-digit document number and the final verification digit. This level of precision is essential for testing complex data validation logic, database integrity constraints, and front-end input masks in applications that require precise tax identification inputs.
Leveraging mock-jutsu for generating Argentinian test data offers significant flexibility across various technical environments. Developers can quickly produce values via the command-line interface using the command "mockjutsu generate ar_cuit" or integrate the logic directly into Python-based backends with the "jutsu.generate('ar_cuit')" method. For performance testing professionals, the library also supports JMeter through the "${__mockjutsu(ar_cuit,)}" syntax, making it a versatile tool for comprehensive end-to-end testing cycles and load simulation.
Using the ar_cuit function streamlines the creation of robust testing scenarios, such as verifying KYC (Know Your Customer) workflows, auditing tax calculation modules, or seeding staging databases with high-fidelity mock data. Instead of manually creating spreadsheets of valid IDs or using static placeholder strings that might fail validation checks, mock-jutsu automates the process, allowing engineering teams to focus on core feature development. This approach not only accelerates the QA process but also minimizes the risk of production errors related to regional identification standards, providing a professional and efficient solution for modern software development.
mockjutsu generate ar_cuitmockjutsu bulk ar_cuit --count 10mockjutsu export ar_cuit --count 10 --format jsonmockjutsu export ar_cuit --count 10 --format csvmockjutsu export ar_cuit --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate ar_cuit --maskmockjutsu bulk ar_cuit --count 5 --maskfrom mockjutsu import jutsujutsu.generate('ar_cuit')jutsu.bulk('ar_cuit', count=10)jutsu.template(['ar_cuit'], count=5)# mask=True: regulation-compliant outputjutsu.generate('ar_cuit', mask=True)jutsu.bulk('ar_cuit', count=5, mask=True)${__mockjutsu_intl_ids(ar_cuit)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: ar_cuit# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(ar_cuit,mask)}GET /generate/ar_cuit# → {"type":"ar_cuit","result":"...","status":"ok"}GET /bulk/ar_cuit?count=10POST /template {"types":["ar_cuit"],"count":1}# mask=true: regulation-compliant outputGET /generate/ar_cuit?mask=trueGET /bulk/ar_cuit?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |