lt_asmensIntlIDs

Mock Jutsu HOW-TO | EN

The lt_asmens function within the mock-jutsu library is an essential tool for developers and QA engineers who require realistic Lithuanian personal identity codes for their software environments. This function generates 11-digit strings that strictly adhere to the official standards set by the Lithuanian government. By integrating this specific generator into your workflow, you can ensure that your applications handle national identification numbers with high precision, avoiding the pitfalls of using generic random strings that would fail validation checks. As a specialized component of the IntlIDs category, it provides the structural integrity necessary for modern software testing.

Technically, the lt_asmens function implements the same sophisticated checksum algorithm used for Estonian personal identification codes (IK). This 11-digit structure encodes specific information, including the individual's gender, century of birth, date of birth, and a sequence number, all culminating in a final modulo-11 checksum digit. The mock-jutsu library automates this complex calculation, providing valid mock data that bypasses front-end and back-end validation logic. Whether you are working via the CLI with "mockjutsu generate lt_asmens" or calling "jutsu.generate('lt_asmens')" in a Python script, the output remains consistent, structurally sound, and ready for immediate use.

Generating high-quality test data is critical for various testing scenarios, particularly in fintech, healthcare, and e-government platforms. With lt_asmens, teams can perform robust integration testing, verifying how databases store sensitive identifiers or how API endpoints process Lithuanian-specific formats. It is also invaluable for performance testing; by using the JMeter function "${__mockjutsu(lt_asmens,)}", load testers can populate systems with thousands of unique, valid identity codes to simulate real-world traffic without compromising the privacy of actual citizens. This ensures that your system's data parsing logic is fully exercised under realistic conditions.

The primary benefit of using mock-jutsu for generating lt_asmens data is the significant reduction in manual overhead. Manually calculating checksums for test data is error-prone and time-consuming. By leveraging this automated tool, developers can focus on building features rather than debugging data-related failures. Furthermore, because the library supports multiple interfaces, it fits seamlessly into modern CI/CD pipelines, ensuring that every stage of the development lifecycle has access to the precise mock data needed for comprehensive validation and high-quality software delivery.

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

Parameters

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

Other Languages