]> Cypherpunks repositories - keks.git/log
keks.git
10 months agoWe can easily check exact Raw's value
Sergey Matveev [Sat, 30 Nov 2024 18:44:11 +0000 (21:44 +0300)]
We can easily check exact Raw's value

10 months agoMove Leapsec-related tests outside common ones
Sergey Matveev [Sat, 30 Nov 2024 18:42:29 +0000 (21:42 +0300)]
Move Leapsec-related tests outside common ones

Because they are not directly involved in TAI-testing, but the
correctness of our database.

10 months agoExplicitly check that length sorting works
Sergey Matveev [Sat, 30 Nov 2024 18:37:13 +0000 (21:37 +0300)]
Explicitly check that length sorting works

10 months agoCombine encode/decode tests
Sergey Matveev [Sat, 30 Nov 2024 18:35:15 +0000 (21:35 +0300)]
Combine encode/decode tests

Because output data of the encode test is the input for the decode one.
Actually tests separation could be useful to determine where we are
failing, but verbose assertEqual failed message will show exactly where
we failed (either during encode or decode).

10 months agoMove everything-strategy as it will be used
Sergey Matveev [Sat, 30 Nov 2024 18:34:54 +0000 (21:34 +0300)]
Move everything-strategy as it will be used

10 months agoRename test for clearness
Sergey Matveev [Sat, 30 Nov 2024 18:24:43 +0000 (21:24 +0300)]
Rename test for clearness

10 months agoMore symmetric tests
Sergey Matveev [Sat, 30 Nov 2024 18:24:02 +0000 (21:24 +0300)]
More symmetric tests

10 months agoSplit long strings tests
Sergey Matveev [Sat, 30 Nov 2024 18:15:37 +0000 (21:15 +0300)]
Split long strings tests

10 months agoSplit strings testing
Sergey Matveev [Sat, 30 Nov 2024 18:01:35 +0000 (21:01 +0300)]
Split strings testing

Binary and Unicode strings are two distinct data types.
However, of course, sharing big amount of code.

10 months agoSingle-test cases can omit test name
Sergey Matveev [Sat, 30 Nov 2024 18:01:13 +0000 (21:01 +0300)]
Single-test cases can omit test name

10 months agoSplit int-related combined tests
Sergey Matveev [Sat, 30 Nov 2024 17:49:23 +0000 (20:49 +0300)]
Split int-related combined tests

10 months agoUnacceptable string representations
Sergey Matveev [Sat, 30 Nov 2024 17:35:22 +0000 (20:35 +0300)]
Unacceptable string representations

Human can read either some of ASCII, some of Unicode, hexadecimal, but
not escaped data. Hexadecimal data clearly does not seem to be close to
Raw's argument encoding. That was definitely just copy-pasted, but
should be manually crafted as a desired and expected data.

10 months agoUnify case in hexadecimal strings
Sergey Matveev [Sat, 30 Nov 2024 17:28:54 +0000 (20:28 +0300)]
Unify case in hexadecimal strings

10 months agoRemove redundant prefix from test names
Sergey Matveev [Sat, 30 Nov 2024 17:24:32 +0000 (20:24 +0300)]
Remove redundant prefix from test names

10 months agoExplicitly cover edge cases
Sergey Matveev [Sat, 30 Nov 2024 17:21:16 +0000 (20:21 +0300)]
Explicitly cover edge cases

10 months agoSplit floats-related combined tests
Sergey Matveev [Sat, 30 Nov 2024 16:53:52 +0000 (19:53 +0300)]
Split floats-related combined tests

Simpler test cases, covering the narrow part of data, as a rule more
convenient to use, because if you have a typo in exactly 128-bit related
floats related code, then *_128 test will show that. Combined tests like
were before will require you using debugger.

10 months agoAdd junk during UUID decoding
Sergey Matveev [Sat, 30 Nov 2024 16:45:35 +0000 (19:45 +0300)]
Add junk during UUID decoding

10 months agoMore understandable naming of context manager's variable
Sergey Matveev [Sat, 30 Nov 2024 16:40:56 +0000 (19:40 +0300)]
More understandable naming of context manager's variable

"cm" just tells that it is "context manager". "class Class" is similar.
"err" can be more appropriate name, telling that it holds something
related to the error.

10 months agoSplit TestErrors
Sergey Matveev [Sat, 30 Nov 2024 16:37:13 +0000 (19:37 +0300)]
Split TestErrors

TestErrors mainly tests the NotEnoughData exception. Move it to its
separate class. Some generic errors tests are moved to separate file.

10 months agoRemove dead test
Sergey Matveev [Sat, 30 Nov 2024 16:32:24 +0000 (19:32 +0300)]
Remove dead test

10 months agoUse more appropriate sets-strategy for map's keys
Sergey Matveev [Sat, 30 Nov 2024 16:29:02 +0000 (19:29 +0300)]
Use more appropriate sets-strategy for map's keys

That way there won't be excess collapsing keys.

10 months agoUse more assertSequenceEqual
Sergey Matveev [Sat, 30 Nov 2024 16:27:02 +0000 (19:27 +0300)]
Use more assertSequenceEqual

For binary/text sequences it gives much more prettier output when
failing, more convenient and easy for human to deal with.

10 months agoSplit long strings
Sergey Matveev [Sat, 30 Nov 2024 16:21:28 +0000 (19:21 +0300)]
Split long strings

10 months agoLet's use shorter variable name
Sergey Matveev [Sat, 30 Nov 2024 16:19:16 +0000 (19:19 +0300)]
Let's use shorter variable name

I have nothing against "remaining", except for its length.
And "tail" term is used in pyac.py already.

10 months agoCollapse unnecessary multiline
Sergey Matveev [Sat, 30 Nov 2024 16:10:49 +0000 (19:10 +0300)]
Collapse unnecessary multiline

10 months agoReduce junk volume
Sergey Matveev [Sat, 30 Nov 2024 16:09:10 +0000 (19:09 +0300)]
Reduce junk volume

Just to reduce testing time. Anyway even several bytes of added data is
enough for testing purposes.

10 months agoAdd commonly used junk-generation strategy
Sergey Matveev [Sat, 30 Nov 2024 16:15:18 +0000 (19:15 +0300)]
Add commonly used junk-generation strategy

10 months agoLimit lists-strategy
Sergey Matveev [Sat, 30 Nov 2024 16:14:27 +0000 (19:14 +0300)]
Limit lists-strategy

10 months agoDRY: move commonly used strategies to single module
Sergey Matveev [Sat, 30 Nov 2024 15:57:52 +0000 (18:57 +0300)]
DRY: move commonly used strategies to single module

10 months agoTest does not accept any arguments
Sergey Matveev [Sat, 30 Nov 2024 16:00:47 +0000 (19:00 +0300)]
Test does not accept any arguments

10 months agoRemove unused imports
Sergey Matveev [Sat, 30 Nov 2024 15:46:31 +0000 (18:46 +0300)]
Remove unused imports

10 months agoUnify import-s grouping
Sergey Matveev [Sat, 30 Nov 2024 15:42:49 +0000 (18:42 +0300)]
Unify import-s grouping

As PEP8 (https://peps.python.org/pep-0008/) says, imports must be
grouped the following way: standard libraries, related third-party,
local application ones. "typing" is native library (since some modern
version), not third-party one.

Also, it is not explicitly noted anywhere, but imports are sorted with
ignored character case.

10 months agoRemove __main__ entrypoints from tests
Sergey Matveev [Sat, 30 Nov 2024 15:39:30 +0000 (18:39 +0300)]
Remove __main__ entrypoints from tests

Tests can easily be run directly by: python -m unittest python-path, so
those __main__ are not helpful at all.

10 months agoImport only necessary single TestCase, not the whole module
Sergey Matveev [Sat, 30 Nov 2024 15:38:33 +0000 (18:38 +0300)]
Import only necessary single TestCase, not the whole module

10 months agoUnify quotes usage
Sergey Matveev [Sat, 30 Nov 2024 15:35:49 +0000 (18:35 +0300)]
Unify quotes usage

10 months agoRemove redundant prefix from the name
Sergey Matveev [Sat, 30 Nov 2024 15:34:12 +0000 (18:34 +0300)]
Remove redundant prefix from the name

pyac_tests/ directory is located inside pyac/ already,
so "pyac_" prefix is not helpful.

10 months agoRemove ignore of the files that should not be generated
Sergey Matveev [Sat, 30 Nov 2024 15:31:22 +0000 (18:31 +0300)]
Remove ignore of the files that should not be generated

Although pyac is Python project and it is reasonable to include .pyc,
__pycache__ ignores, but I am confident, that an adequate Python setup
must not generate them at all. They are more than useless and must be
globally disabled on the system (PYTHONDONTWRITEBYTECODE=1), so should
not appear at all. Even if they are created, user should ignore them
globally in its own global .gitignore, rather in each Python-related
project.

10 months agoRemove personal tool preference ignore
Sergey Matveev [Sat, 30 Nov 2024 15:29:02 +0000 (18:29 +0300)]
Remove personal tool preference ignore

Project does not depend on VSCode in anyway. It is own preference of
what editors/tools to use. Should not be committed.

10 months agoMake a proper text file
Sergey Matveev [Sat, 30 Nov 2024 15:28:37 +0000 (18:28 +0300)]
Make a proper text file

10 months agoAdd tests
RudenkoAD [Fri, 15 Nov 2024 18:46:53 +0000 (21:46 +0300)]
Add tests

10 months agoBetter TAI-related testing
Sergey Matveev [Fri, 22 Nov 2024 15:19:44 +0000 (18:19 +0300)]
Better TAI-related testing

10 months agoFix awful typo error
Sergey Matveev [Thu, 21 Nov 2024 20:29:13 +0000 (23:29 +0300)]
Fix awful typo error

10 months agoHuman-convenient arguments
Sergey Matveev [Thu, 21 Nov 2024 12:38:11 +0000 (15:38 +0300)]
Human-convenient arguments

10 months agoIgnore some noisy warnings
Sergey Matveev [Thu, 21 Nov 2024 12:36:29 +0000 (15:36 +0300)]
Ignore some noisy warnings

10 months agoUnnecessary separator
Sergey Matveev [Thu, 21 Nov 2024 10:32:02 +0000 (13:32 +0300)]
Unnecessary separator

10 months agoRevised and corrected work with TAI64
Sergey Matveev [Thu, 21 Nov 2024 10:25:37 +0000 (13:25 +0300)]
Revised and corrected work with TAI64

10 months agoFixed TAI64N[A] *seconds validation
Sergey Matveev [Thu, 21 Nov 2024 09:03:28 +0000 (12:03 +0300)]
Fixed TAI64N[A] *seconds validation

10 months agoUse updated fixed tai64n library
Sergey Matveev [Thu, 21 Nov 2024 08:44:17 +0000 (11:44 +0300)]
Use updated fixed tai64n library

10 months agoRaise copyright years
Sergey Matveev [Thu, 21 Nov 2024 08:30:17 +0000 (11:30 +0300)]
Raise copyright years

10 months agoZero nsecs is ok for TAI64NA
Sergey Matveev [Thu, 21 Nov 2024 08:25:34 +0000 (11:25 +0300)]
Zero nsecs is ok for TAI64NA

10 months agoAssure that minimally encoded TAI64s are used
Sergey Matveev [Wed, 20 Nov 2024 21:25:26 +0000 (00:25 +0300)]
Assure that minimally encoded TAI64s are used

10 months agoTrivial optimisations
Sergey Matveev [Wed, 20 Nov 2024 14:10:00 +0000 (17:10 +0300)]
Trivial optimisations

10 months agomain() can accept void
Sergey Matveev [Wed, 20 Nov 2024 14:03:06 +0000 (17:03 +0300)]
main() can accept void

10 months agoRevised and corrected work with TAI64
Sergey Matveev [Wed, 20 Nov 2024 14:02:25 +0000 (17:02 +0300)]
Revised and corrected work with TAI64

10 months agoMove external-TAI64 specific constant out
Sergey Matveev [Wed, 20 Nov 2024 13:51:04 +0000 (16:51 +0300)]
Move external-TAI64 specific constant out

10 months agoExample leapsec border example
Sergey Matveev [Wed, 20 Nov 2024 13:13:08 +0000 (16:13 +0300)]
Example leapsec border example

10 months agoPlace function before intended call to it
Sergey Matveev [Wed, 20 Nov 2024 13:10:31 +0000 (16:10 +0300)]
Place function before intended call to it

10 months agoFixed typoed variable
Sergey Matveev [Wed, 20 Nov 2024 13:09:37 +0000 (16:09 +0300)]
Fixed typoed variable

10 months agoRevised and corrected work with TAI64
Sergey Matveev [Wed, 20 Nov 2024 12:39:34 +0000 (15:39 +0300)]
Revised and corrected work with TAI64

10 months agoFix condition
Sergey Matveev [Wed, 20 Nov 2024 12:38:20 +0000 (15:38 +0300)]
Fix condition

1<<63 value is also reserved (not allowed) one.

10 months agoDo not construct constant objects every time function is called
Sergey Matveev [Wed, 20 Nov 2024 12:37:42 +0000 (15:37 +0300)]
Do not construct constant objects every time function is called

10 months agoTAI64 is actually called external
Sergey Matveev [Wed, 20 Nov 2024 11:15:19 +0000 (14:15 +0300)]
TAI64 is actually called external

10 months agoMore PEP8 conformance
Sergey Matveev [Wed, 20 Nov 2024 12:40:16 +0000 (15:40 +0300)]
More PEP8 conformance

10 months agoNote that this is not a duplicate line
Sergey Matveev [Wed, 20 Nov 2024 11:12:02 +0000 (14:12 +0300)]
Note that this is not a duplicate line

10 months agoset encoding support
Sergey Matveev [Fri, 15 Nov 2024 13:05:23 +0000 (16:05 +0300)]
set encoding support

10 months agoCommand-line pretty-printer
Sergey Matveev [Wed, 13 Nov 2024 13:59:33 +0000 (16:59 +0300)]
Command-line pretty-printer

11 months agoSimplify pyac
Sergey Matveev [Wed, 13 Nov 2024 12:54:36 +0000 (15:54 +0300)]
Simplify pyac

Current classes are just useless. Initially it was probably expected to
use pyac as a generic tool for examining YAC data, like PyDERASN, that
keeps various offsets and lengths. But I doubt it would be used that way.

11 months agoSlightly reduced code
Sergey Matveev [Wed, 13 Nov 2024 11:07:03 +0000 (14:07 +0300)]
Slightly reduced code

11 months agoMore marketing
Sergey Matveev [Wed, 13 Nov 2024 10:45:21 +0000 (13:45 +0300)]
More marketing

11 months agoFix vlen size
Sergey Matveev [Tue, 12 Nov 2024 11:12:14 +0000 (14:12 +0300)]
Fix vlen size

11 months agoTrivial style fixes
Sergey Matveev [Mon, 11 Nov 2024 18:08:26 +0000 (21:08 +0300)]
Trivial style fixes

11 months agoMore general CanSign replacement
Sergey Matveev [Mon, 11 Nov 2024 10:07:33 +0000 (13:07 +0300)]
More general CanSign replacement

11 months agoBigints
Sergey Matveev [Thu, 7 Nov 2024 06:48:33 +0000 (09:48 +0300)]
Bigints

11 months agoUse "set" instead of map
Sergey Matveev [Wed, 30 Oct 2024 11:32:12 +0000 (14:32 +0300)]
Use "set" instead of map

11 months agoTrivial helper
Sergey Matveev [Wed, 30 Oct 2024 09:58:28 +0000 (12:58 +0300)]
Trivial helper

11 months agoVarious trivial additions
Sergey Matveev [Wed, 30 Oct 2024 08:47:33 +0000 (11:47 +0300)]
Various trivial additions

11 months agoSatisfy linter
Sergey Matveev [Fri, 25 Oct 2024 11:58:42 +0000 (14:58 +0300)]
Satisfy linter

11 months agoMore docstrings
Sergey Matveev [Mon, 21 Oct 2024 11:11:00 +0000 (14:11 +0300)]
More docstrings

11 months agoForgotten UTC conversion
Sergey Matveev [Fri, 18 Oct 2024 13:26:12 +0000 (16:26 +0300)]
Forgotten UTC conversion

11 months agoMore documentation
Sergey Matveev [Fri, 18 Oct 2024 11:55:25 +0000 (14:55 +0300)]
More documentation

11 months agoDeterministic decoding of blob lengths
Sergey Matveev [Fri, 18 Oct 2024 10:16:20 +0000 (13:16 +0300)]
Deterministic decoding of blob lengths

11 months agoTypo in constant's case
Sergey Matveev [Fri, 18 Oct 2024 10:15:13 +0000 (13:15 +0300)]
Typo in constant's case

11 months agoTrivial usage help
Sergey Matveev [Fri, 18 Oct 2024 10:15:01 +0000 (13:15 +0300)]
Trivial usage help

11 months agoDeterministic decoding of string lengths
Sergey Matveev [Fri, 18 Oct 2024 09:17:55 +0000 (12:17 +0300)]
Deterministic decoding of string lengths

11 months agoTiny comments for configuration files
Sergey Matveev [Fri, 18 Oct 2024 07:54:21 +0000 (10:54 +0300)]
Tiny comments for configuration files

11 months agoAbility to skip storing of offsets
Sergey Matveev [Thu, 17 Oct 2024 08:54:37 +0000 (11:54 +0300)]
Ability to skip storing of offsets

11 months agoNo excess map usage description
Sergey Matveev [Thu, 17 Oct 2024 08:54:05 +0000 (11:54 +0300)]
No excess map usage description

11 months agoSilence useless warning
Sergey Matveev [Thu, 17 Oct 2024 08:53:45 +0000 (11:53 +0300)]
Silence useless warning

11 months agoUnify size types and check overflows
Sergey Matveev [Wed, 16 Oct 2024 14:06:55 +0000 (17:06 +0300)]
Unify size types and check overflows

11 months agoSaner field names
Sergey Matveev [Tue, 15 Oct 2024 19:31:08 +0000 (22:31 +0300)]
Saner field names

11 months agoCheck ca ku presence
Sergey Matveev [Tue, 15 Oct 2024 13:02:52 +0000 (16:02 +0300)]
Check ca ku presence

11 months agocyac implemented certificate verifier
Sergey Matveev [Tue, 15 Oct 2024 07:31:30 +0000 (10:31 +0300)]
cyac implemented certificate verifier

11 months agoMore sets usage
Sergey Matveev [Tue, 15 Oct 2024 07:02:19 +0000 (10:02 +0300)]
More sets usage

11 months agoProper 34.10 signature is R||S
Sergey Matveev [Mon, 14 Oct 2024 17:26:19 +0000 (20:26 +0300)]
Proper 34.10 signature is R||S

11 months agoTypo in schema definition
Sergey Matveev [Mon, 14 Oct 2024 17:25:09 +0000 (20:25 +0300)]
Typo in schema definition

11 months agoColourise printer
Sergey Matveev [Mon, 14 Oct 2024 08:33:16 +0000 (11:33 +0300)]
Colourise printer

11 months agoRename "pool" to "items"
Sergey Matveev [Mon, 14 Oct 2024 07:42:28 +0000 (10:42 +0300)]
Rename "pool" to "items"

12 months agoNon-streamable parser
Sergey Matveev [Sun, 13 Oct 2024 17:36:51 +0000 (20:36 +0300)]
Non-streamable parser

12 months agoForbid empty map strings
Sergey Matveev [Sun, 13 Oct 2024 16:26:19 +0000 (19:26 +0300)]
Forbid empty map strings

12 months agoYet another revised certificate format
Sergey Matveev [Sat, 12 Oct 2024 14:11:35 +0000 (17:11 +0300)]
Yet another revised certificate format