Skip to content

[WIP] x/format: GopClassSource#2020

Open
visualfc wants to merge 6 commits into
goplus:mainfrom
visualfc:format_class
Open

[WIP] x/format: GopClassSource#2020
visualfc wants to merge 6 commits into
goplus:mainfrom
visualfc:format_class

Conversation

@visualfc

@visualfc visualfc commented Nov 21, 2024

Copy link
Copy Markdown
Member
type ClassConfig struct {
	PkgPath   string            // Go+ class project pkgpath, empty if normal .gox class. (optional)
	ClassName string            // project or class name.
	Project   bool              // true means ClassName is project.
	Comments  bool              // true means parse comments.
	Gopt      map[string]string // Gopt_ function name mapping. (optional)
	Overload  map[string]string // Overload function name mapping. (optional)
}
// GopClassSource format Go+ source to Go+ class source.
func GopClassSource(src []byte, cfg *ClassConfig, filename ...string) (ret []byte, err error) {

@codecov

codecov Bot commented Nov 21, 2024

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.52778% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.15%. Comparing base (7602c46) to head (9bce991).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
x/format/gopstyle.go 95.76% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2020      +/-   ##
==========================================
+ Coverage   94.08%   94.15%   +0.07%     
==========================================
  Files          32       32              
  Lines       10061    10203     +142     
==========================================
+ Hits         9466     9607     +141     
  Misses        425      425              
- Partials      170      171       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@visualfc visualfc force-pushed the format_class branch 3 times, most recently from 83f9cac to 5147ee0 Compare November 22, 2024 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant