DIY version of the ZeroLyte Salty Orange electrolyte mix
- 2.5 grams of Sodium Chloride (NaCl)
- 0.4 grams of Magnesium Malate (Mg)
import git | |
from unidiff import PatchSet | |
import os | |
from io import StringIO | |
class GitDiff: | |
""" | |
Class to get the diff between two branches |
DIY version of the ZeroLyte Salty Orange electrolyte mix
# frozen_string_literal: true | |
# This class provides a wrapper around the Octokit client for GitHub App authentication. | |
# It handles token generation and refreshing, and delegates method calls to the Octokit client. | |
# Helpful: https://github.com/octokit/handbook?tab=readme-ov-file#github-app-authentication-json-web-token | |
# Go ahead and rename all the environment variables that start with "YOUR_..." to match your setup. | |
# | |
# Usage (examples): | |
# require_relative "github" | |
# github = GitHub.new |
The following statement is generally the best overall for mocking:
let (:log) { instance_double(Logger).as_null_object }
# - Creates an instance double of Logger with interface validation
# - Converts it into a null object that absorbs any unexpected method calls