Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optlib: allow users to set fields and check extras defined in a foreign language #3960

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

masatake
Copy link
Member

@masatake masatake commented Mar 14, 2024

In addition, this pull request allows you to fill out a field for a foreign tag from optscript.

  • testing more with broken input

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 88.27586% with 17 lines in your changes missing coverage. Please review.

Project coverage is 85.95%. Comparing base (e31feb0) to head (b8b157f).

Files with missing lines Patch % Lines
main/field.c 84.31% 8 Missing ⚠️
optlib/scss.c 0.00% 3 Missing ⚠️
main/parse.c 94.28% 2 Missing ⚠️
main/script.c 94.11% 2 Missing ⚠️
main/options.c 75.00% 1 Missing ⚠️
main/writer-json.c 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3960      +/-   ##
==========================================
+ Coverage   85.94%   85.95%   +0.01%     
==========================================
  Files         239      239              
  Lines       58976    59097     +121     
==========================================
+ Hits        50686    50797     +111     
- Misses       8290     8300      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@masatake masatake marked this pull request as draft March 14, 2024 23:51
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from e14c4e6 to cbdc8c8 Compare March 15, 2024 03:29
@masatake
Copy link
Member Author

The ways to support boolean fields are not consistent in various aspects.

@masatake
Copy link
Member Author

f3246a2 and 1f073fc can be cherry-pick'ed.

@masatake
Copy link
Member Author

We can merge c428bd3 ... 9b3f25f.

d15cc30 needs a test case.

@masatake masatake force-pushed the main--foreign-fields branch from ae46592 to eba8b2e Compare August 30, 2024 14:22
@masatake
Copy link
Member Author

I added test cases. The top half of this pull request can be merged. I will make a pull request.

@masatake masatake force-pushed the main--foreign-fields branch from eba8b2e to c50fcca Compare August 30, 2024 18:37
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from 8f2f83d to 8ea0aa6 Compare January 2, 2025 15:38
@masatake masatake marked this pull request as ready for review January 2, 2025 16:28
@masatake
Copy link
Member Author

masatake commented Jan 2, 2025

This pull request was for a Texinfo parser.
However, this pull request may be useful for SCSS parser, too.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…for newly defined field

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
--_list-fielddef-flags option is added, too.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…field setters

This is a preparation. A test case for raising the error introduced in
this commit will be added when we have real field accessors.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
The operators (setter and/or getter) for each field.
The name of operatos has following form:

	setter => <LANG>.<FIELD>:
	getter => :<LANG>.<FIELD>

NOTE: The operators for a field are defined only if the
field has C level getters and setters, getValueObject and setValueObject
in fieldDefinition. This commit doesn't provide a getter and a setter.
The test cases and the real accessor will be implemented later.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…ned in an optlib parser

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…efined in optlib

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the main--foreign-fields branch from 8ea0aa6 to 7805e78 Compare January 2, 2025 17:12
@masatake masatake added this to the 6.2 milestone Jan 2, 2025
@masatake masatake force-pushed the main--foreign-fields branch from 7805e78 to 4a62955 Compare January 2, 2025 20:48
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the main--foreign-fields branch from 4a62955 to b8b157f Compare January 2, 2025 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant