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

feat(#77): use go embed #87

Merged
merged 3 commits into from
Jun 8, 2022
Merged

feat(#77): use go embed #87

merged 3 commits into from
Jun 8, 2022

Conversation

euskadi31
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented Jun 8, 2022

Code Coverage


github.com/hyperscale/hyperpic/cmd/hyperpic/app/config/configuration.go:23:			NewConfiguration		100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/config/image_support_configuration.go:13:	IsExtSupported			100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/doc_controller.go:20:		NewDocController		100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/doc_controller.go:25:		Mount				100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/doc_controller.go:31:		getSwaggerHandler		100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/doc_controller.go:51:		getDocHandler			100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:38:		NewImageController		100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:55:		Mount				100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:77:		getHandler			100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:153:		parseImageFileFromRequest	100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:192:		postHandler			85.2%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:253:		deleteHandler			100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/metrics/metrics.go:11:				init				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/fsutil/fs.go:12:					ContainsDotDot			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/fsutil/fs.go:26:					isSlashRune			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/error.go:21:				Error				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/error.go:26:				GetCode				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/error.go:31:				GetMessage			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:23:			init				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:56:			Copy				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:69:			ParseTime			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:83:			ParseList			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:132:			ParseValueAndParams		86.4%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:169:			ParseAccept			90.5%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:201:			skipSpace			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:211:			expectToken			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:221:			expectTokenSlash		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:232:			expectQuality			94.7%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:262:			expectTokenOrQuoted		90.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/negotiate.go:18:				NegotiateContentEncoding	100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/negotiate.go:45:				NegotiateContentType		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/response.go:15:				ServeImage			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/mock_processor.go:13:				ProcessImage			0.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:26:				NewOptionParser			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:39:				register			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:47:				colorConverter			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:95:				angleConverter			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:104:				formatConverter			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:113:				fitConverter			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:122:				cropConverter			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:163:				Parse				75.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/options.go:121:				Hash				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/options.go:149:				ToBimg				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/process.go:31:				NewProcessor			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/process.go:35:				process				50.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/process.go:61:				ProcessImage			84.6%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/process.go:95:				GetImageMimeType		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/type.go:14:					ExtractImageTypeFromMime	100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/type.go:29:					IsImageMimeTypeSupported	100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/type.go:36:					IsFormatSupported		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/type.go:50:					ExtensionToType			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/logger/configuration.go:16:				Level				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/logger/handler.go:16:				Handler				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:36:					NewBuffer			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:48:					Seek				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:73:					Write				88.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:88:					Close				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:95:					Read				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:112:				ReadAt				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:132:				Truncate			90.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:150:				grow				91.7%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:170:				makeSlice			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/auth_handler.go:16:			NewAuthHandler			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/client_hints_handler.go:14:		parseInt			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/client_hints_handler.go:18:		parseFloat			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/client_hints_handler.go:26:		NewClientHintsHandler		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/content_type_handler.go:17:		NewContentTypeHandler		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/image_extension_filter_handler.go:18:	NewImageExtensionFilterHandler	100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/options_handler.go:17:			NewOptionsContext		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/options_handler.go:22:			OptionsFromContext		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/options_handler.go:36:			NewOptionsHandler		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/path_handler.go:17:			NewPathHandler			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/security_handler.go:12:			NewSecurityHandler		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:28:		NewCacheProvider		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:38:		removeOldCacheFile		75.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:56:		Run				87.5%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:75:		Del				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:86:		Get				76.2%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:134:		Set				76.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/source_provider.go:24:		NewSourceProvider		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/source_provider.go:31:		Set				84.6%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/source_provider.go:58:		Get				88.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/source_provider.go:106:		Del				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:30:		NewCacheProvider		100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:41:		removeOldCache			100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:56:		Run				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:85:		Del				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:115:		Get				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:147:		Set				100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/server/configuration.go:44:				ToConfig			100.0%
total:												(statements)			94.4%

Pusher: @euskadi31, Action: pull_request, Workflow: Go

@github-actions
Copy link

github-actions bot commented Jun 8, 2022

Benchmark



Pusher: @euskadi31, Action: pull_request, Workflow: Go

@euskadi31 euskadi31 merged commit b40973a into develop Jun 8, 2022
@euskadi31 euskadi31 deleted the feature/embedded-docs branch June 8, 2022 21:57
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