innIdentity

Mock Jutsu HOW-TO | EN

The mock-jutsu library provides a sophisticated solution for developers and QA engineers who require high-fidelity test data for regional compliance and financial systems. One of its standout features in the Identity category is the inn function, which generates a valid Russian Tax Identification Number (Individual Taxpayer Number). In a globalized development environment, having access to accurate mock data that adheres to local standards is critical for ensuring that application logic remains robust when processing international identifiers.

Every inn generated by mock-jutsu is not just a random sequence of digits; it is a mathematically sound identifier that follows the strict checksum validation rules established by the Russian Federal Tax Service. The library implements the specific weighted coefficient algorithm used to verify both 10-digit codes for legal entities and 12-digit codes for individuals. This level of precision ensures that the test data will pass through internal validation scripts, database constraints, and third-party API checks without triggering false negatives, which is a common frustration when using simplified placeholder strings.

The versatility of mock-jutsu allows for seamless integration across the entire software development lifecycle. For rapid prototyping or local testing, developers can use the Python interface with jutsu.generate('inn') to populate localized data structures. If a DevOps engineer needs to seed a database via a shell script, the CLI command mockjutsu generate inn provides an immediate result. Furthermore, performance testers can utilize the JMeter syntax ${__mockjutsu(inn,)} to simulate high-load scenarios involving tax-related transactions or KYC (Know Your Customer) workflows, ensuring the system handles real-world data patterns under pressure.

By automating the creation of valid inn records, mock-jutsu eliminates the need for manual data entry and reduces the risk of using sensitive real-world information in non-production environments. This focus on standard-compliant test data empowers teams to focus on building features rather than troubleshooting data integrity issues. Whether you are validating a registration form, testing a financial reporting module, or hardening a CRM system, the inn function provides the reliability and accuracy necessary for modern enterprise software development.

CLI Usage
mockjutsu generate innmockjutsu bulk inn --count 10mockjutsu export inn --count 10 --format jsonmockjutsu export inn --count 10 --format csvmockjutsu export inn --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate inn --maskmockjutsu bulk inn --count 5 --mask
Python API
from mockjutsu import jutsujutsu.generate('inn')jutsu.bulk('inn', count=10)jutsu.template(['inn'], count=5)# mask=True: regulation-compliant outputjutsu.generate('inn', mask=True)jutsu.bulk('inn', count=5, mask=True)
JMeter
${__mockjutsu_identity(inn)}# JMeter Function: __mockjutsu_identity# Parameter 1: inn# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_identity(inn,mask)}
REST API
GET /generate/inn# → {"type":"inn","result":"...","status":"ok"}GET /bulk/inn?count=10POST /template {"types":["inn"],"count":1}# mask=true: regulation-compliant outputGET /generate/inn?mask=trueGET /bulk/inn?count=5&mask=true

Parameters

Parameter Values Description
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages