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

Update dependencies and enhance command structure with new flags #18

Merged
merged 9 commits into from
Dec 8, 2024

Conversation

chrisreddington
Copy link
Collaborator

@chrisreddington chrisreddington commented Dec 7, 2024

This pull request makes several enhancements for the CLI experience:

  • Refactors the main command structure to utilize cobra for improved command handling.
  • Adds the --web flag to easily navigate to a user's GitHub profile
  • Adds the --output flag to override the default output file path.
  • Removes the date and time from the info logger format for a cleaner output.
  • Adds a test for the new openGitHubProfile function and updates the MockGitHubClient and MockBrowser to support new functionalities.
  • Updates the README with detailed examples for each new flag and usage scenarios.

This PR also adds a couple of new dependencies to enable these changes, including the browser package in cli/go-gh and the sp13/cobra package.

Many thanks to @andyfeller for some excellent suggestions here 🙏

Copy link

github-actions bot commented Dec 7, 2024

Code Coverage Report

github.com/github/gh-skyline/ascii/generator.go:19:		GenerateASCII			87.1%
github.com/github/gh-skyline/ascii/generator.go:87:		sortContributionDays		85.0%
github.com/github/gh-skyline/ascii/generator.go:127:		getBlockType			100.0%
github.com/github/gh-skyline/ascii/generator.go:146:		getBlock			100.0%
github.com/github/gh-skyline/ascii/text.go:31:			centerText			100.0%
github.com/github/gh-skyline/errors/errors.go:28:		Error				100.0%
github.com/github/gh-skyline/errors/errors.go:36:		New				100.0%
github.com/github/gh-skyline/errors/errors.go:46:		Wrap				100.0%
github.com/github/gh-skyline/errors/errors.go:69:		Is				100.0%
github.com/github/gh-skyline/errors/errors.go:78:		Unwrap				100.0%
github.com/github/gh-skyline/github/client.go:28:		NewClient			100.0%
github.com/github/gh-skyline/github/client.go:33:		GetAuthenticatedUser		100.0%
github.com/github/gh-skyline/github/client.go:48:		FetchContributions		94.4%
github.com/github/gh-skyline/github/client.go:111:		GetUserJoinYear			93.3%
github.com/github/gh-skyline/logger/logger.go:23:		String				100.0%
github.com/github/gh-skyline/logger/logger.go:44:		GetLogger			100.0%
github.com/github/gh-skyline/logger/logger.go:59:		SetLevel			100.0%
github.com/github/gh-skyline/logger/logger.go:66:		logf				91.7%
github.com/github/gh-skyline/logger/logger.go:90:		Debug				100.0%
github.com/github/gh-skyline/logger/logger.go:95:		Info				100.0%
github.com/github/gh-skyline/logger/logger.go:100:		Warning				0.0%
github.com/github/gh-skyline/logger/logger.go:105:		Error				100.0%
github.com/github/gh-skyline/main.go:77:			init				100.0%
github.com/github/gh-skyline/main.go:87:			main				0.0%
github.com/github/gh-skyline/main.go:95:			formatYearRange			100.0%
github.com/github/gh-skyline/main.go:103:			generateOutputFilename		50.0%
github.com/github/gh-skyline/main.go:116:			generateSkyline			72.5%
github.com/github/gh-skyline/main.go:193:			defaultGitHubClient		0.0%
github.com/github/gh-skyline/main.go:202:			fetchContributionData		87.5%
github.com/github/gh-skyline/main.go:219:			parseYearRange			86.7%
github.com/github/gh-skyline/main.go:243:			validateYearRange		100.0%
github.com/github/gh-skyline/main.go:255:			openGitHubProfile		0.0%
github.com/github/gh-skyline/stl/generator.go:15:		GenerateSTL			100.0%
github.com/github/gh-skyline/stl/generator.go:29:		GenerateSTLRange		66.7%
github.com/github/gh-skyline/stl/generator.go:77:		validateInput			88.9%
github.com/github/gh-skyline/stl/generator.go:93:		calculateDimensions		87.5%
github.com/github/gh-skyline/stl/generator.go:114:		findMaxContributions		100.0%
github.com/github/gh-skyline/stl/generator.go:127:		findMaxContributionsAcrossYears	100.0%
github.com/github/gh-skyline/stl/generator.go:147:		generateModelGeometry		94.7%
github.com/github/gh-skyline/stl/generator.go:188:		generateBase			44.4%
github.com/github/gh-skyline/stl/generator.go:205:		generateText			58.3%
github.com/github/gh-skyline/stl/generator.go:228:		generateLogo			44.4%
github.com/github/gh-skyline/stl/generator.go:243:		estimateTriangleCount		100.0%
github.com/github/gh-skyline/stl/generator.go:260:		generateColumnsForYearRange	72.7%
github.com/github/gh-skyline/stl/generator.go:281:		CreateContributionGeometry	80.0%
github.com/github/gh-skyline/stl/geometry/assets.go:16:		writeTempFont			62.5%
github.com/github/gh-skyline/stl/geometry/assets.go:47:		getEmbeddedImage		56.2%
github.com/github/gh-skyline/stl/geometry/geometry.go:46:	NormalizeContribution		100.0%
github.com/github/gh-skyline/stl/geometry/geometry.go:66:	CreateContributionGeometry	92.3%
github.com/github/gh-skyline/stl/geometry/geometry.go:92:	CalculateMultiYearDimensions	100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:11:		CreateQuad			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:24:		CreateCuboidBase		100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:31:		CreateColumn			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:44:		CreateCube			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:61:		createBox			100.0%
github.com/github/gh-skyline/stl/geometry/text.go:65:		Create3DText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:112:		renderText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:165:		GenerateImageGeometry		83.3%
github.com/github/gh-skyline/stl/geometry/text.go:190:		renderImage			84.6%
github.com/github/gh-skyline/stl/geometry/text.go:245:		isPixelActive			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:12:		validateVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:22:		calculateNormal			88.9%
github.com/github/gh-skyline/stl/geometry/vector.go:43:		isZeroVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:50:		vectorSubtract			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:60:		vectorCross			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:70:		normalizeVector			75.0%
github.com/github/gh-skyline/stl/stl.go:50:			writeFloat32			100.0%
github.com/github/gh-skyline/stl/stl.go:56:			writePoint3D			100.0%
github.com/github/gh-skyline/stl/stl.go:64:			writeSTLHeader			80.0%
github.com/github/gh-skyline/stl/stl.go:75:			writeTriangleCount		66.7%
github.com/github/gh-skyline/stl/stl.go:84:			writeTrianglesData		72.7%
github.com/github/gh-skyline/stl/stl.go:117:			WriteSTLBinary			68.2%
github.com/github/gh-skyline/stl/stl.go:159:			writeTriangleToBuffer		88.9%
github.com/github/gh-skyline/types/types.go:19:			IsAfter				100.0%
github.com/github/gh-skyline/types/types.go:30:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:65:			IsValid				100.0%
github.com/github/gh-skyline/types/types.go:82:			ToFloat32			100.0%
github.com/github/gh-skyline/types/types.go:99:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:125:		ToFloat32			100.0%
total:								(statements)			77.0%

Copy link

github-actions bot commented Dec 7, 2024

Code Coverage Report

github.com/github/gh-skyline/ascii/generator.go:19:		GenerateASCII			87.1%
github.com/github/gh-skyline/ascii/generator.go:87:		sortContributionDays		85.0%
github.com/github/gh-skyline/ascii/generator.go:127:		getBlockType			100.0%
github.com/github/gh-skyline/ascii/generator.go:146:		getBlock			100.0%
github.com/github/gh-skyline/ascii/text.go:31:			centerText			100.0%
github.com/github/gh-skyline/errors/errors.go:28:		Error				100.0%
github.com/github/gh-skyline/errors/errors.go:36:		New				100.0%
github.com/github/gh-skyline/errors/errors.go:46:		Wrap				100.0%
github.com/github/gh-skyline/errors/errors.go:69:		Is				100.0%
github.com/github/gh-skyline/errors/errors.go:78:		Unwrap				100.0%
github.com/github/gh-skyline/github/client.go:28:		NewClient			100.0%
github.com/github/gh-skyline/github/client.go:33:		GetAuthenticatedUser		100.0%
github.com/github/gh-skyline/github/client.go:48:		FetchContributions		94.4%
github.com/github/gh-skyline/github/client.go:111:		GetUserJoinYear			93.3%
github.com/github/gh-skyline/logger/logger.go:23:		String				100.0%
github.com/github/gh-skyline/logger/logger.go:44:		GetLogger			100.0%
github.com/github/gh-skyline/logger/logger.go:59:		SetLevel			100.0%
github.com/github/gh-skyline/logger/logger.go:66:		logf				91.7%
github.com/github/gh-skyline/logger/logger.go:90:		Debug				100.0%
github.com/github/gh-skyline/logger/logger.go:95:		Info				100.0%
github.com/github/gh-skyline/logger/logger.go:100:		Warning				0.0%
github.com/github/gh-skyline/logger/logger.go:105:		Error				100.0%
github.com/github/gh-skyline/main.go:77:			init				100.0%
github.com/github/gh-skyline/main.go:87:			main				0.0%
github.com/github/gh-skyline/main.go:95:			formatYearRange			100.0%
github.com/github/gh-skyline/main.go:103:			generateOutputFilename		50.0%
github.com/github/gh-skyline/main.go:116:			generateSkyline			72.5%
github.com/github/gh-skyline/main.go:193:			defaultGitHubClient		0.0%
github.com/github/gh-skyline/main.go:202:			fetchContributionData		87.5%
github.com/github/gh-skyline/main.go:219:			parseYearRange			86.7%
github.com/github/gh-skyline/main.go:243:			validateYearRange		100.0%
github.com/github/gh-skyline/main.go:255:			openGitHubProfile		0.0%
github.com/github/gh-skyline/stl/generator.go:15:		GenerateSTL			100.0%
github.com/github/gh-skyline/stl/generator.go:29:		GenerateSTLRange		66.7%
github.com/github/gh-skyline/stl/generator.go:77:		validateInput			88.9%
github.com/github/gh-skyline/stl/generator.go:93:		calculateDimensions		87.5%
github.com/github/gh-skyline/stl/generator.go:114:		findMaxContributions		100.0%
github.com/github/gh-skyline/stl/generator.go:127:		findMaxContributionsAcrossYears	100.0%
github.com/github/gh-skyline/stl/generator.go:147:		generateModelGeometry		94.7%
github.com/github/gh-skyline/stl/generator.go:188:		generateBase			44.4%
github.com/github/gh-skyline/stl/generator.go:205:		generateText			58.3%
github.com/github/gh-skyline/stl/generator.go:228:		generateLogo			44.4%
github.com/github/gh-skyline/stl/generator.go:243:		estimateTriangleCount		100.0%
github.com/github/gh-skyline/stl/generator.go:260:		generateColumnsForYearRange	72.7%
github.com/github/gh-skyline/stl/generator.go:281:		CreateContributionGeometry	80.0%
github.com/github/gh-skyline/stl/geometry/assets.go:16:		writeTempFont			62.5%
github.com/github/gh-skyline/stl/geometry/assets.go:47:		getEmbeddedImage		56.2%
github.com/github/gh-skyline/stl/geometry/geometry.go:46:	NormalizeContribution		100.0%
github.com/github/gh-skyline/stl/geometry/geometry.go:66:	CreateContributionGeometry	92.3%
github.com/github/gh-skyline/stl/geometry/geometry.go:92:	CalculateMultiYearDimensions	100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:11:		CreateQuad			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:24:		CreateCuboidBase		100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:31:		CreateColumn			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:44:		CreateCube			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:61:		createBox			100.0%
github.com/github/gh-skyline/stl/geometry/text.go:65:		Create3DText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:112:		renderText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:165:		GenerateImageGeometry		83.3%
github.com/github/gh-skyline/stl/geometry/text.go:190:		renderImage			84.6%
github.com/github/gh-skyline/stl/geometry/text.go:245:		isPixelActive			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:12:		validateVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:22:		calculateNormal			88.9%
github.com/github/gh-skyline/stl/geometry/vector.go:43:		isZeroVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:50:		vectorSubtract			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:60:		vectorCross			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:70:		normalizeVector			75.0%
github.com/github/gh-skyline/stl/stl.go:50:			writeFloat32			100.0%
github.com/github/gh-skyline/stl/stl.go:56:			writePoint3D			100.0%
github.com/github/gh-skyline/stl/stl.go:64:			writeSTLHeader			80.0%
github.com/github/gh-skyline/stl/stl.go:75:			writeTriangleCount		66.7%
github.com/github/gh-skyline/stl/stl.go:84:			writeTrianglesData		72.7%
github.com/github/gh-skyline/stl/stl.go:117:			WriteSTLBinary			68.2%
github.com/github/gh-skyline/stl/stl.go:159:			writeTriangleToBuffer		88.9%
github.com/github/gh-skyline/types/types.go:19:			IsAfter				100.0%
github.com/github/gh-skyline/types/types.go:30:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:65:			IsValid				100.0%
github.com/github/gh-skyline/types/types.go:82:			ToFloat32			100.0%
github.com/github/gh-skyline/types/types.go:99:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:125:		ToFloat32			100.0%
total:								(statements)			77.0%

Copy link

github-actions bot commented Dec 7, 2024

Code Coverage Report

github.com/github/gh-skyline/ascii/generator.go:19:		GenerateASCII			87.1%
github.com/github/gh-skyline/ascii/generator.go:87:		sortContributionDays		85.0%
github.com/github/gh-skyline/ascii/generator.go:127:		getBlockType			100.0%
github.com/github/gh-skyline/ascii/generator.go:146:		getBlock			100.0%
github.com/github/gh-skyline/ascii/text.go:31:			centerText			100.0%
github.com/github/gh-skyline/errors/errors.go:28:		Error				100.0%
github.com/github/gh-skyline/errors/errors.go:36:		New				100.0%
github.com/github/gh-skyline/errors/errors.go:46:		Wrap				100.0%
github.com/github/gh-skyline/errors/errors.go:69:		Is				100.0%
github.com/github/gh-skyline/errors/errors.go:78:		Unwrap				100.0%
github.com/github/gh-skyline/github/client.go:28:		NewClient			100.0%
github.com/github/gh-skyline/github/client.go:33:		GetAuthenticatedUser		100.0%
github.com/github/gh-skyline/github/client.go:48:		FetchContributions		94.4%
github.com/github/gh-skyline/github/client.go:111:		GetUserJoinYear			93.3%
github.com/github/gh-skyline/logger/logger.go:23:		String				100.0%
github.com/github/gh-skyline/logger/logger.go:44:		GetLogger			100.0%
github.com/github/gh-skyline/logger/logger.go:59:		SetLevel			100.0%
github.com/github/gh-skyline/logger/logger.go:66:		logf				91.7%
github.com/github/gh-skyline/logger/logger.go:90:		Debug				100.0%
github.com/github/gh-skyline/logger/logger.go:95:		Info				100.0%
github.com/github/gh-skyline/logger/logger.go:100:		Warning				0.0%
github.com/github/gh-skyline/logger/logger.go:105:		Error				100.0%
github.com/github/gh-skyline/main.go:77:			init				100.0%
github.com/github/gh-skyline/main.go:87:			main				0.0%
github.com/github/gh-skyline/main.go:95:			formatYearRange			100.0%
github.com/github/gh-skyline/main.go:103:			generateOutputFilename		50.0%
github.com/github/gh-skyline/main.go:116:			generateSkyline			72.5%
github.com/github/gh-skyline/main.go:193:			defaultGitHubClient		0.0%
github.com/github/gh-skyline/main.go:202:			fetchContributionData		87.5%
github.com/github/gh-skyline/main.go:219:			parseYearRange			86.7%
github.com/github/gh-skyline/main.go:243:			validateYearRange		100.0%
github.com/github/gh-skyline/main.go:255:			openGitHubProfile		0.0%
github.com/github/gh-skyline/stl/generator.go:15:		GenerateSTL			100.0%
github.com/github/gh-skyline/stl/generator.go:29:		GenerateSTLRange		66.7%
github.com/github/gh-skyline/stl/generator.go:77:		validateInput			88.9%
github.com/github/gh-skyline/stl/generator.go:93:		calculateDimensions		87.5%
github.com/github/gh-skyline/stl/generator.go:114:		findMaxContributions		100.0%
github.com/github/gh-skyline/stl/generator.go:127:		findMaxContributionsAcrossYears	100.0%
github.com/github/gh-skyline/stl/generator.go:147:		generateModelGeometry		94.7%
github.com/github/gh-skyline/stl/generator.go:188:		generateBase			44.4%
github.com/github/gh-skyline/stl/generator.go:205:		generateText			58.3%
github.com/github/gh-skyline/stl/generator.go:228:		generateLogo			44.4%
github.com/github/gh-skyline/stl/generator.go:243:		estimateTriangleCount		100.0%
github.com/github/gh-skyline/stl/generator.go:260:		generateColumnsForYearRange	72.7%
github.com/github/gh-skyline/stl/generator.go:281:		CreateContributionGeometry	80.0%
github.com/github/gh-skyline/stl/geometry/assets.go:16:		writeTempFont			62.5%
github.com/github/gh-skyline/stl/geometry/assets.go:47:		getEmbeddedImage		56.2%
github.com/github/gh-skyline/stl/geometry/geometry.go:46:	NormalizeContribution		100.0%
github.com/github/gh-skyline/stl/geometry/geometry.go:66:	CreateContributionGeometry	92.3%
github.com/github/gh-skyline/stl/geometry/geometry.go:92:	CalculateMultiYearDimensions	100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:11:		CreateQuad			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:24:		CreateCuboidBase		100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:31:		CreateColumn			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:44:		CreateCube			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:61:		createBox			100.0%
github.com/github/gh-skyline/stl/geometry/text.go:65:		Create3DText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:112:		renderText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:165:		GenerateImageGeometry		83.3%
github.com/github/gh-skyline/stl/geometry/text.go:190:		renderImage			84.6%
github.com/github/gh-skyline/stl/geometry/text.go:245:		isPixelActive			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:12:		validateVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:22:		calculateNormal			88.9%
github.com/github/gh-skyline/stl/geometry/vector.go:43:		isZeroVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:50:		vectorSubtract			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:60:		vectorCross			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:70:		normalizeVector			75.0%
github.com/github/gh-skyline/stl/stl.go:50:			writeFloat32			100.0%
github.com/github/gh-skyline/stl/stl.go:56:			writePoint3D			100.0%
github.com/github/gh-skyline/stl/stl.go:64:			writeSTLHeader			80.0%
github.com/github/gh-skyline/stl/stl.go:75:			writeTriangleCount		66.7%
github.com/github/gh-skyline/stl/stl.go:84:			writeTrianglesData		72.7%
github.com/github/gh-skyline/stl/stl.go:117:			WriteSTLBinary			68.2%
github.com/github/gh-skyline/stl/stl.go:159:			writeTriangleToBuffer		88.9%
github.com/github/gh-skyline/types/types.go:19:			IsAfter				100.0%
github.com/github/gh-skyline/types/types.go:30:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:65:			IsValid				100.0%
github.com/github/gh-skyline/types/types.go:82:			ToFloat32			100.0%
github.com/github/gh-skyline/types/types.go:99:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:125:		ToFloat32			100.0%
total:								(statements)			77.0%

Copy link

github-actions bot commented Dec 7, 2024

Code Coverage Report

github.com/github/gh-skyline/ascii/generator.go:19:		GenerateASCII			87.1%
github.com/github/gh-skyline/ascii/generator.go:87:		sortContributionDays		85.0%
github.com/github/gh-skyline/ascii/generator.go:127:		getBlockType			100.0%
github.com/github/gh-skyline/ascii/generator.go:146:		getBlock			100.0%
github.com/github/gh-skyline/ascii/text.go:31:			centerText			100.0%
github.com/github/gh-skyline/errors/errors.go:28:		Error				100.0%
github.com/github/gh-skyline/errors/errors.go:36:		New				100.0%
github.com/github/gh-skyline/errors/errors.go:46:		Wrap				100.0%
github.com/github/gh-skyline/errors/errors.go:69:		Is				100.0%
github.com/github/gh-skyline/errors/errors.go:78:		Unwrap				100.0%
github.com/github/gh-skyline/github/client.go:28:		NewClient			100.0%
github.com/github/gh-skyline/github/client.go:33:		GetAuthenticatedUser		100.0%
github.com/github/gh-skyline/github/client.go:48:		FetchContributions		94.4%
github.com/github/gh-skyline/github/client.go:111:		GetUserJoinYear			93.3%
github.com/github/gh-skyline/logger/logger.go:23:		String				100.0%
github.com/github/gh-skyline/logger/logger.go:44:		GetLogger			100.0%
github.com/github/gh-skyline/logger/logger.go:59:		SetLevel			100.0%
github.com/github/gh-skyline/logger/logger.go:66:		logf				91.7%
github.com/github/gh-skyline/logger/logger.go:90:		Debug				100.0%
github.com/github/gh-skyline/logger/logger.go:95:		Info				100.0%
github.com/github/gh-skyline/logger/logger.go:100:		Warning				0.0%
github.com/github/gh-skyline/logger/logger.go:105:		Error				100.0%
github.com/github/gh-skyline/main.go:77:			init				100.0%
github.com/github/gh-skyline/main.go:87:			main				0.0%
github.com/github/gh-skyline/main.go:95:			formatYearRange			100.0%
github.com/github/gh-skyline/main.go:103:			generateOutputFilename		50.0%
github.com/github/gh-skyline/main.go:116:			generateSkyline			72.5%
github.com/github/gh-skyline/main.go:193:			defaultGitHubClient		0.0%
github.com/github/gh-skyline/main.go:202:			fetchContributionData		87.5%
github.com/github/gh-skyline/main.go:219:			parseYearRange			86.7%
github.com/github/gh-skyline/main.go:243:			validateYearRange		100.0%
github.com/github/gh-skyline/main.go:255:			openGitHubProfile		0.0%
github.com/github/gh-skyline/stl/generator.go:15:		GenerateSTL			100.0%
github.com/github/gh-skyline/stl/generator.go:29:		GenerateSTLRange		66.7%
github.com/github/gh-skyline/stl/generator.go:77:		validateInput			88.9%
github.com/github/gh-skyline/stl/generator.go:93:		calculateDimensions		87.5%
github.com/github/gh-skyline/stl/generator.go:114:		findMaxContributions		100.0%
github.com/github/gh-skyline/stl/generator.go:127:		findMaxContributionsAcrossYears	100.0%
github.com/github/gh-skyline/stl/generator.go:147:		generateModelGeometry		94.7%
github.com/github/gh-skyline/stl/generator.go:188:		generateBase			44.4%
github.com/github/gh-skyline/stl/generator.go:205:		generateText			58.3%
github.com/github/gh-skyline/stl/generator.go:228:		generateLogo			44.4%
github.com/github/gh-skyline/stl/generator.go:243:		estimateTriangleCount		100.0%
github.com/github/gh-skyline/stl/generator.go:260:		generateColumnsForYearRange	72.7%
github.com/github/gh-skyline/stl/generator.go:281:		CreateContributionGeometry	80.0%
github.com/github/gh-skyline/stl/geometry/assets.go:16:		writeTempFont			62.5%
github.com/github/gh-skyline/stl/geometry/assets.go:47:		getEmbeddedImage		56.2%
github.com/github/gh-skyline/stl/geometry/geometry.go:46:	NormalizeContribution		100.0%
github.com/github/gh-skyline/stl/geometry/geometry.go:66:	CreateContributionGeometry	92.3%
github.com/github/gh-skyline/stl/geometry/geometry.go:92:	CalculateMultiYearDimensions	100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:11:		CreateQuad			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:24:		CreateCuboidBase		100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:31:		CreateColumn			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:44:		CreateCube			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:61:		createBox			100.0%
github.com/github/gh-skyline/stl/geometry/text.go:65:		Create3DText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:112:		renderText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:165:		GenerateImageGeometry		83.3%
github.com/github/gh-skyline/stl/geometry/text.go:190:		renderImage			84.6%
github.com/github/gh-skyline/stl/geometry/text.go:245:		isPixelActive			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:12:		validateVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:22:		calculateNormal			88.9%
github.com/github/gh-skyline/stl/geometry/vector.go:43:		isZeroVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:50:		vectorSubtract			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:60:		vectorCross			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:70:		normalizeVector			75.0%
github.com/github/gh-skyline/stl/stl.go:50:			writeFloat32			100.0%
github.com/github/gh-skyline/stl/stl.go:56:			writePoint3D			100.0%
github.com/github/gh-skyline/stl/stl.go:64:			writeSTLHeader			80.0%
github.com/github/gh-skyline/stl/stl.go:75:			writeTriangleCount		66.7%
github.com/github/gh-skyline/stl/stl.go:84:			writeTrianglesData		72.7%
github.com/github/gh-skyline/stl/stl.go:117:			WriteSTLBinary			68.2%
github.com/github/gh-skyline/stl/stl.go:159:			writeTriangleToBuffer		88.9%
github.com/github/gh-skyline/types/types.go:19:			IsAfter				100.0%
github.com/github/gh-skyline/types/types.go:30:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:65:			IsValid				100.0%
github.com/github/gh-skyline/types/types.go:82:			ToFloat32			100.0%
github.com/github/gh-skyline/types/types.go:99:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:125:		ToFloat32			100.0%
total:								(statements)			77.0%

Copy link

github-actions bot commented Dec 7, 2024

Code Coverage Report

github.com/github/gh-skyline/ascii/generator.go:19:		GenerateASCII			87.1%
github.com/github/gh-skyline/ascii/generator.go:87:		sortContributionDays		85.0%
github.com/github/gh-skyline/ascii/generator.go:127:		getBlockType			100.0%
github.com/github/gh-skyline/ascii/generator.go:146:		getBlock			100.0%
github.com/github/gh-skyline/ascii/text.go:31:			centerText			100.0%
github.com/github/gh-skyline/errors/errors.go:28:		Error				100.0%
github.com/github/gh-skyline/errors/errors.go:36:		New				100.0%
github.com/github/gh-skyline/errors/errors.go:46:		Wrap				100.0%
github.com/github/gh-skyline/errors/errors.go:69:		Is				100.0%
github.com/github/gh-skyline/errors/errors.go:78:		Unwrap				100.0%
github.com/github/gh-skyline/github/client.go:28:		NewClient			100.0%
github.com/github/gh-skyline/github/client.go:33:		GetAuthenticatedUser		100.0%
github.com/github/gh-skyline/github/client.go:48:		FetchContributions		94.4%
github.com/github/gh-skyline/github/client.go:111:		GetUserJoinYear			93.3%
github.com/github/gh-skyline/logger/logger.go:23:		String				100.0%
github.com/github/gh-skyline/logger/logger.go:44:		GetLogger			100.0%
github.com/github/gh-skyline/logger/logger.go:59:		SetLevel			100.0%
github.com/github/gh-skyline/logger/logger.go:66:		logf				91.7%
github.com/github/gh-skyline/logger/logger.go:90:		Debug				100.0%
github.com/github/gh-skyline/logger/logger.go:95:		Info				100.0%
github.com/github/gh-skyline/logger/logger.go:100:		Warning				0.0%
github.com/github/gh-skyline/logger/logger.go:105:		Error				100.0%
github.com/github/gh-skyline/main.go:79:			init				100.0%
github.com/github/gh-skyline/main.go:89:			main				0.0%
github.com/github/gh-skyline/main.go:97:			formatYearRange			100.0%
github.com/github/gh-skyline/main.go:105:			generateOutputFilename		50.0%
github.com/github/gh-skyline/main.go:118:			generateSkyline			72.5%
github.com/github/gh-skyline/main.go:195:			defaultGitHubClient		0.0%
github.com/github/gh-skyline/main.go:204:			fetchContributionData		87.5%
github.com/github/gh-skyline/main.go:221:			parseYearRange			86.7%
github.com/github/gh-skyline/main.go:245:			validateYearRange		100.0%
github.com/github/gh-skyline/main.go:257:			openGitHubProfile		0.0%
github.com/github/gh-skyline/stl/generator.go:15:		GenerateSTL			100.0%
github.com/github/gh-skyline/stl/generator.go:29:		GenerateSTLRange		66.7%
github.com/github/gh-skyline/stl/generator.go:77:		validateInput			88.9%
github.com/github/gh-skyline/stl/generator.go:93:		calculateDimensions		87.5%
github.com/github/gh-skyline/stl/generator.go:114:		findMaxContributions		100.0%
github.com/github/gh-skyline/stl/generator.go:127:		findMaxContributionsAcrossYears	100.0%
github.com/github/gh-skyline/stl/generator.go:147:		generateModelGeometry		94.7%
github.com/github/gh-skyline/stl/generator.go:188:		generateBase			44.4%
github.com/github/gh-skyline/stl/generator.go:205:		generateText			58.3%
github.com/github/gh-skyline/stl/generator.go:228:		generateLogo			44.4%
github.com/github/gh-skyline/stl/generator.go:243:		estimateTriangleCount		100.0%
github.com/github/gh-skyline/stl/generator.go:260:		generateColumnsForYearRange	72.7%
github.com/github/gh-skyline/stl/generator.go:281:		CreateContributionGeometry	80.0%
github.com/github/gh-skyline/stl/geometry/assets.go:16:		writeTempFont			62.5%
github.com/github/gh-skyline/stl/geometry/assets.go:47:		getEmbeddedImage		56.2%
github.com/github/gh-skyline/stl/geometry/geometry.go:46:	NormalizeContribution		100.0%
github.com/github/gh-skyline/stl/geometry/geometry.go:66:	CreateContributionGeometry	92.3%
github.com/github/gh-skyline/stl/geometry/geometry.go:92:	CalculateMultiYearDimensions	100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:11:		CreateQuad			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:24:		CreateCuboidBase		100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:31:		CreateColumn			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:44:		CreateCube			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:61:		createBox			100.0%
github.com/github/gh-skyline/stl/geometry/text.go:65:		Create3DText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:112:		renderText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:165:		GenerateImageGeometry		83.3%
github.com/github/gh-skyline/stl/geometry/text.go:190:		renderImage			84.6%
github.com/github/gh-skyline/stl/geometry/text.go:245:		isPixelActive			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:12:		validateVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:22:		calculateNormal			88.9%
github.com/github/gh-skyline/stl/geometry/vector.go:43:		isZeroVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:50:		vectorSubtract			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:60:		vectorCross			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:70:		normalizeVector			75.0%
github.com/github/gh-skyline/stl/stl.go:50:			writeFloat32			100.0%
github.com/github/gh-skyline/stl/stl.go:56:			writePoint3D			100.0%
github.com/github/gh-skyline/stl/stl.go:64:			writeSTLHeader			80.0%
github.com/github/gh-skyline/stl/stl.go:75:			writeTriangleCount		66.7%
github.com/github/gh-skyline/stl/stl.go:84:			writeTrianglesData		72.7%
github.com/github/gh-skyline/stl/stl.go:117:			WriteSTLBinary			68.2%
github.com/github/gh-skyline/stl/stl.go:159:			writeTriangleToBuffer		88.9%
github.com/github/gh-skyline/types/types.go:19:			IsAfter				100.0%
github.com/github/gh-skyline/types/types.go:30:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:65:			IsValid				100.0%
github.com/github/gh-skyline/types/types.go:82:			ToFloat32			100.0%
github.com/github/gh-skyline/types/types.go:99:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:125:		ToFloat32			100.0%
total:								(statements)			77.0%

Copy link

github-actions bot commented Dec 7, 2024

Code Coverage Report

github.com/github/gh-skyline/ascii/generator.go:19:		GenerateASCII			87.1%
github.com/github/gh-skyline/ascii/generator.go:87:		sortContributionDays		85.0%
github.com/github/gh-skyline/ascii/generator.go:127:		getBlockType			100.0%
github.com/github/gh-skyline/ascii/generator.go:146:		getBlock			100.0%
github.com/github/gh-skyline/ascii/text.go:31:			centerText			100.0%
github.com/github/gh-skyline/errors/errors.go:28:		Error				100.0%
github.com/github/gh-skyline/errors/errors.go:36:		New				100.0%
github.com/github/gh-skyline/errors/errors.go:46:		Wrap				100.0%
github.com/github/gh-skyline/errors/errors.go:69:		Is				100.0%
github.com/github/gh-skyline/errors/errors.go:78:		Unwrap				100.0%
github.com/github/gh-skyline/github/client.go:28:		NewClient			100.0%
github.com/github/gh-skyline/github/client.go:33:		GetAuthenticatedUser		100.0%
github.com/github/gh-skyline/github/client.go:48:		FetchContributions		94.4%
github.com/github/gh-skyline/github/client.go:111:		GetUserJoinYear			93.3%
github.com/github/gh-skyline/logger/logger.go:23:		String				100.0%
github.com/github/gh-skyline/logger/logger.go:44:		GetLogger			100.0%
github.com/github/gh-skyline/logger/logger.go:59:		SetLevel			100.0%
github.com/github/gh-skyline/logger/logger.go:66:		logf				91.7%
github.com/github/gh-skyline/logger/logger.go:90:		Debug				100.0%
github.com/github/gh-skyline/logger/logger.go:95:		Info				100.0%
github.com/github/gh-skyline/logger/logger.go:100:		Warning				0.0%
github.com/github/gh-skyline/logger/logger.go:105:		Error				100.0%
github.com/github/gh-skyline/main.go:79:			init				100.0%
github.com/github/gh-skyline/main.go:89:			main				0.0%
github.com/github/gh-skyline/main.go:97:			formatYearRange			100.0%
github.com/github/gh-skyline/main.go:105:			generateOutputFilename		50.0%
github.com/github/gh-skyline/main.go:118:			generateSkyline			72.5%
github.com/github/gh-skyline/main.go:195:			defaultGitHubClient		0.0%
github.com/github/gh-skyline/main.go:204:			fetchContributionData		87.5%
github.com/github/gh-skyline/main.go:221:			parseYearRange			86.7%
github.com/github/gh-skyline/main.go:245:			validateYearRange		100.0%
github.com/github/gh-skyline/main.go:257:			openGitHubProfile		0.0%
github.com/github/gh-skyline/stl/generator.go:15:		GenerateSTL			100.0%
github.com/github/gh-skyline/stl/generator.go:29:		GenerateSTLRange		66.7%
github.com/github/gh-skyline/stl/generator.go:77:		validateInput			88.9%
github.com/github/gh-skyline/stl/generator.go:93:		calculateDimensions		87.5%
github.com/github/gh-skyline/stl/generator.go:114:		findMaxContributions		100.0%
github.com/github/gh-skyline/stl/generator.go:127:		findMaxContributionsAcrossYears	100.0%
github.com/github/gh-skyline/stl/generator.go:147:		generateModelGeometry		94.7%
github.com/github/gh-skyline/stl/generator.go:188:		generateBase			44.4%
github.com/github/gh-skyline/stl/generator.go:205:		generateText			58.3%
github.com/github/gh-skyline/stl/generator.go:228:		generateLogo			44.4%
github.com/github/gh-skyline/stl/generator.go:243:		estimateTriangleCount		100.0%
github.com/github/gh-skyline/stl/generator.go:260:		generateColumnsForYearRange	72.7%
github.com/github/gh-skyline/stl/generator.go:281:		CreateContributionGeometry	80.0%
github.com/github/gh-skyline/stl/geometry/assets.go:16:		writeTempFont			62.5%
github.com/github/gh-skyline/stl/geometry/assets.go:47:		getEmbeddedImage		56.2%
github.com/github/gh-skyline/stl/geometry/geometry.go:46:	NormalizeContribution		100.0%
github.com/github/gh-skyline/stl/geometry/geometry.go:66:	CreateContributionGeometry	92.3%
github.com/github/gh-skyline/stl/geometry/geometry.go:92:	CalculateMultiYearDimensions	100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:11:		CreateQuad			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:24:		CreateCuboidBase		100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:31:		CreateColumn			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:44:		CreateCube			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:61:		createBox			100.0%
github.com/github/gh-skyline/stl/geometry/text.go:65:		Create3DText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:112:		renderText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:165:		GenerateImageGeometry		83.3%
github.com/github/gh-skyline/stl/geometry/text.go:190:		renderImage			84.6%
github.com/github/gh-skyline/stl/geometry/text.go:245:		isPixelActive			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:12:		validateVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:22:		calculateNormal			88.9%
github.com/github/gh-skyline/stl/geometry/vector.go:43:		isZeroVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:50:		vectorSubtract			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:60:		vectorCross			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:70:		normalizeVector			75.0%
github.com/github/gh-skyline/stl/stl.go:50:			writeFloat32			100.0%
github.com/github/gh-skyline/stl/stl.go:56:			writePoint3D			100.0%
github.com/github/gh-skyline/stl/stl.go:64:			writeSTLHeader			80.0%
github.com/github/gh-skyline/stl/stl.go:75:			writeTriangleCount		66.7%
github.com/github/gh-skyline/stl/stl.go:84:			writeTrianglesData		72.7%
github.com/github/gh-skyline/stl/stl.go:117:			WriteSTLBinary			68.2%
github.com/github/gh-skyline/stl/stl.go:159:			writeTriangleToBuffer		88.9%
github.com/github/gh-skyline/types/types.go:19:			IsAfter				100.0%
github.com/github/gh-skyline/types/types.go:30:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:65:			IsValid				100.0%
github.com/github/gh-skyline/types/types.go:82:			ToFloat32			100.0%
github.com/github/gh-skyline/types/types.go:99:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:125:		ToFloat32			100.0%
total:								(statements)			77.0%

Copy link

github-actions bot commented Dec 8, 2024

Code Coverage Report

github.com/github/gh-skyline/ascii/generator.go:19:		GenerateASCII			87.1%
github.com/github/gh-skyline/ascii/generator.go:87:		sortContributionDays		85.0%
github.com/github/gh-skyline/ascii/generator.go:127:		getBlockType			100.0%
github.com/github/gh-skyline/ascii/generator.go:146:		getBlock			100.0%
github.com/github/gh-skyline/ascii/text.go:31:			centerText			100.0%
github.com/github/gh-skyline/errors/errors.go:28:		Error				100.0%
github.com/github/gh-skyline/errors/errors.go:36:		New				100.0%
github.com/github/gh-skyline/errors/errors.go:46:		Wrap				100.0%
github.com/github/gh-skyline/errors/errors.go:69:		Is				100.0%
github.com/github/gh-skyline/errors/errors.go:78:		Unwrap				100.0%
github.com/github/gh-skyline/github/client.go:28:		NewClient			100.0%
github.com/github/gh-skyline/github/client.go:33:		GetAuthenticatedUser		100.0%
github.com/github/gh-skyline/github/client.go:48:		FetchContributions		94.4%
github.com/github/gh-skyline/github/client.go:111:		GetUserJoinYear			93.3%
github.com/github/gh-skyline/logger/logger.go:23:		String				100.0%
github.com/github/gh-skyline/logger/logger.go:44:		GetLogger			100.0%
github.com/github/gh-skyline/logger/logger.go:59:		SetLevel			100.0%
github.com/github/gh-skyline/logger/logger.go:66:		logf				91.7%
github.com/github/gh-skyline/logger/logger.go:90:		Debug				100.0%
github.com/github/gh-skyline/logger/logger.go:95:		Info				100.0%
github.com/github/gh-skyline/logger/logger.go:100:		Warning				0.0%
github.com/github/gh-skyline/logger/logger.go:105:		Error				100.0%
github.com/github/gh-skyline/main.go:101:			init				100.0%
github.com/github/gh-skyline/main.go:111:			main				0.0%
github.com/github/gh-skyline/main.go:119:			formatYearRange			100.0%
github.com/github/gh-skyline/main.go:127:			generateOutputFilename		50.0%
github.com/github/gh-skyline/main.go:140:			generateSkyline			72.5%
github.com/github/gh-skyline/main.go:217:			defaultGitHubClient		0.0%
github.com/github/gh-skyline/main.go:226:			fetchContributionData		87.5%
github.com/github/gh-skyline/main.go:243:			parseYearRange			86.7%
github.com/github/gh-skyline/main.go:270:			validateYearRange		100.0%
github.com/github/gh-skyline/main.go:282:			openGitHubProfile		100.0%
github.com/github/gh-skyline/stl/generator.go:15:		GenerateSTL			100.0%
github.com/github/gh-skyline/stl/generator.go:29:		GenerateSTLRange		66.7%
github.com/github/gh-skyline/stl/generator.go:77:		validateInput			88.9%
github.com/github/gh-skyline/stl/generator.go:93:		calculateDimensions		87.5%
github.com/github/gh-skyline/stl/generator.go:114:		findMaxContributions		100.0%
github.com/github/gh-skyline/stl/generator.go:127:		findMaxContributionsAcrossYears	100.0%
github.com/github/gh-skyline/stl/generator.go:147:		generateModelGeometry		94.7%
github.com/github/gh-skyline/stl/generator.go:188:		generateBase			44.4%
github.com/github/gh-skyline/stl/generator.go:205:		generateText			58.3%
github.com/github/gh-skyline/stl/generator.go:228:		generateLogo			44.4%
github.com/github/gh-skyline/stl/generator.go:243:		estimateTriangleCount		100.0%
github.com/github/gh-skyline/stl/generator.go:260:		generateColumnsForYearRange	72.7%
github.com/github/gh-skyline/stl/generator.go:281:		CreateContributionGeometry	80.0%
github.com/github/gh-skyline/stl/geometry/assets.go:16:		writeTempFont			62.5%
github.com/github/gh-skyline/stl/geometry/assets.go:47:		getEmbeddedImage		56.2%
github.com/github/gh-skyline/stl/geometry/geometry.go:46:	NormalizeContribution		100.0%
github.com/github/gh-skyline/stl/geometry/geometry.go:66:	CreateContributionGeometry	92.3%
github.com/github/gh-skyline/stl/geometry/geometry.go:92:	CalculateMultiYearDimensions	100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:11:		CreateQuad			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:24:		CreateCuboidBase		100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:31:		CreateColumn			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:44:		CreateCube			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:61:		createBox			100.0%
github.com/github/gh-skyline/stl/geometry/text.go:65:		Create3DText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:112:		renderText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:165:		GenerateImageGeometry		83.3%
github.com/github/gh-skyline/stl/geometry/text.go:190:		renderImage			84.6%
github.com/github/gh-skyline/stl/geometry/text.go:245:		isPixelActive			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:12:		validateVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:22:		calculateNormal			88.9%
github.com/github/gh-skyline/stl/geometry/vector.go:43:		isZeroVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:50:		vectorSubtract			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:60:		vectorCross			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:70:		normalizeVector			75.0%
github.com/github/gh-skyline/stl/stl.go:50:			writeFloat32			100.0%
github.com/github/gh-skyline/stl/stl.go:56:			writePoint3D			100.0%
github.com/github/gh-skyline/stl/stl.go:64:			writeSTLHeader			80.0%
github.com/github/gh-skyline/stl/stl.go:75:			writeTriangleCount		66.7%
github.com/github/gh-skyline/stl/stl.go:84:			writeTrianglesData		72.7%
github.com/github/gh-skyline/stl/stl.go:117:			WriteSTLBinary			68.2%
github.com/github/gh-skyline/stl/stl.go:159:			writeTriangleToBuffer		88.9%
github.com/github/gh-skyline/types/types.go:19:			IsAfter				100.0%
github.com/github/gh-skyline/types/types.go:30:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:65:			IsValid				100.0%
github.com/github/gh-skyline/types/types.go:82:			ToFloat32			100.0%
github.com/github/gh-skyline/types/types.go:99:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:125:		ToFloat32			100.0%
total:								(statements)			78.6%

Copy link

github-actions bot commented Dec 8, 2024

Code Coverage Report

github.com/github/gh-skyline/ascii/generator.go:19:		GenerateASCII			87.1%
github.com/github/gh-skyline/ascii/generator.go:87:		sortContributionDays		85.0%
github.com/github/gh-skyline/ascii/generator.go:127:		getBlockType			100.0%
github.com/github/gh-skyline/ascii/generator.go:146:		getBlock			100.0%
github.com/github/gh-skyline/ascii/text.go:31:			centerText			100.0%
github.com/github/gh-skyline/errors/errors.go:28:		Error				100.0%
github.com/github/gh-skyline/errors/errors.go:36:		New				100.0%
github.com/github/gh-skyline/errors/errors.go:46:		Wrap				100.0%
github.com/github/gh-skyline/errors/errors.go:69:		Is				100.0%
github.com/github/gh-skyline/errors/errors.go:78:		Unwrap				100.0%
github.com/github/gh-skyline/github/client.go:28:		NewClient			100.0%
github.com/github/gh-skyline/github/client.go:33:		GetAuthenticatedUser		100.0%
github.com/github/gh-skyline/github/client.go:48:		FetchContributions		94.4%
github.com/github/gh-skyline/github/client.go:111:		GetUserJoinYear			93.3%
github.com/github/gh-skyline/logger/logger.go:23:		String				100.0%
github.com/github/gh-skyline/logger/logger.go:44:		GetLogger			100.0%
github.com/github/gh-skyline/logger/logger.go:59:		SetLevel			100.0%
github.com/github/gh-skyline/logger/logger.go:66:		logf				91.7%
github.com/github/gh-skyline/logger/logger.go:90:		Debug				100.0%
github.com/github/gh-skyline/logger/logger.go:95:		Info				100.0%
github.com/github/gh-skyline/logger/logger.go:100:		Warning				0.0%
github.com/github/gh-skyline/logger/logger.go:105:		Error				100.0%
github.com/github/gh-skyline/main.go:103:			init				100.0%
github.com/github/gh-skyline/main.go:113:			main				0.0%
github.com/github/gh-skyline/main.go:121:			formatYearRange			100.0%
github.com/github/gh-skyline/main.go:129:			generateOutputFilename		50.0%
github.com/github/gh-skyline/main.go:142:			generateSkyline			72.5%
github.com/github/gh-skyline/main.go:219:			defaultGitHubClient		0.0%
github.com/github/gh-skyline/main.go:228:			fetchContributionData		87.5%
github.com/github/gh-skyline/main.go:245:			parseYearRange			86.7%
github.com/github/gh-skyline/main.go:272:			validateYearRange		100.0%
github.com/github/gh-skyline/main.go:284:			openGitHubProfile		100.0%
github.com/github/gh-skyline/stl/generator.go:15:		GenerateSTL			100.0%
github.com/github/gh-skyline/stl/generator.go:29:		GenerateSTLRange		66.7%
github.com/github/gh-skyline/stl/generator.go:77:		validateInput			88.9%
github.com/github/gh-skyline/stl/generator.go:93:		calculateDimensions		87.5%
github.com/github/gh-skyline/stl/generator.go:114:		findMaxContributions		100.0%
github.com/github/gh-skyline/stl/generator.go:127:		findMaxContributionsAcrossYears	100.0%
github.com/github/gh-skyline/stl/generator.go:147:		generateModelGeometry		94.7%
github.com/github/gh-skyline/stl/generator.go:188:		generateBase			44.4%
github.com/github/gh-skyline/stl/generator.go:205:		generateText			58.3%
github.com/github/gh-skyline/stl/generator.go:228:		generateLogo			44.4%
github.com/github/gh-skyline/stl/generator.go:243:		estimateTriangleCount		100.0%
github.com/github/gh-skyline/stl/generator.go:260:		generateColumnsForYearRange	72.7%
github.com/github/gh-skyline/stl/generator.go:281:		CreateContributionGeometry	80.0%
github.com/github/gh-skyline/stl/geometry/assets.go:16:		writeTempFont			62.5%
github.com/github/gh-skyline/stl/geometry/assets.go:47:		getEmbeddedImage		56.2%
github.com/github/gh-skyline/stl/geometry/geometry.go:46:	NormalizeContribution		100.0%
github.com/github/gh-skyline/stl/geometry/geometry.go:66:	CreateContributionGeometry	92.3%
github.com/github/gh-skyline/stl/geometry/geometry.go:92:	CalculateMultiYearDimensions	100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:11:		CreateQuad			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:24:		CreateCuboidBase		100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:31:		CreateColumn			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:44:		CreateCube			100.0%
github.com/github/gh-skyline/stl/geometry/shapes.go:61:		createBox			100.0%
github.com/github/gh-skyline/stl/geometry/text.go:65:		Create3DText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:112:		renderText			0.0%
github.com/github/gh-skyline/stl/geometry/text.go:165:		GenerateImageGeometry		83.3%
github.com/github/gh-skyline/stl/geometry/text.go:190:		renderImage			84.6%
github.com/github/gh-skyline/stl/geometry/text.go:245:		isPixelActive			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:12:		validateVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:22:		calculateNormal			88.9%
github.com/github/gh-skyline/stl/geometry/vector.go:43:		isZeroVector			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:50:		vectorSubtract			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:60:		vectorCross			100.0%
github.com/github/gh-skyline/stl/geometry/vector.go:70:		normalizeVector			75.0%
github.com/github/gh-skyline/stl/stl.go:50:			writeFloat32			100.0%
github.com/github/gh-skyline/stl/stl.go:56:			writePoint3D			100.0%
github.com/github/gh-skyline/stl/stl.go:64:			writeSTLHeader			80.0%
github.com/github/gh-skyline/stl/stl.go:75:			writeTriangleCount		66.7%
github.com/github/gh-skyline/stl/stl.go:84:			writeTrianglesData		72.7%
github.com/github/gh-skyline/stl/stl.go:117:			WriteSTLBinary			68.2%
github.com/github/gh-skyline/stl/stl.go:159:			writeTriangleToBuffer		88.9%
github.com/github/gh-skyline/types/types.go:19:			IsAfter				100.0%
github.com/github/gh-skyline/types/types.go:30:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:65:			IsValid				100.0%
github.com/github/gh-skyline/types/types.go:82:			ToFloat32			100.0%
github.com/github/gh-skyline/types/types.go:99:			Validate			100.0%
github.com/github/gh-skyline/types/types.go:125:		ToFloat32			100.0%
total:								(statements)			78.6%

@chrisreddington chrisreddington merged commit f763ab4 into main Dec 8, 2024
19 checks passed
@chrisreddington chrisreddington deleted the cli-enhancements branch December 8, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant