Skip to content

Instantly share code, notes, and snippets.

View perlpunk's full-sized avatar

Tina Müller (tinita) perlpunk

View GitHub Profile
@perlpunk
perlpunk / abc.yaml
Last active August 13, 2024 15:00
pyyaml-include
a: 1
b: 2
#!/usr/bin/perl
# Copyright @ SUSE LLC
# SPDX-License-Identifier: GPL-2.0-or-later
use Test::Most;
use testapi;
use Test::MockModule;
use Test::MockObject;
subtest 'handle_password_prompt' => sub {
@perlpunk
perlpunk / cpp.event
Created May 23, 2019 15:50
wrong indented flow sequence
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ []
=VAL :flow style sequence
string: "abcd\
efgh\
ijkl\
mnop\
qrst\
uvwxyz"
@perlpunk
perlpunk / cpp.event
Last active June 25, 2018 20:12
yaml-flow-colon-5
+STR
+DOC
+SEQ
+MAP {}
=VAL :omitted value
=VAL :
-MAP
-SEQ
-DOC
-STR
@perlpunk
perlpunk / hs-yaml.event
Last active June 25, 2018 20:12
yaml-flow-colon-4
+STR
+DOC
+SEQ
+SEQ
=VAL :foo:
-SEQ
-SEQ
-DOC
-STR
@perlpunk
perlpunk / cpp.event
Last active June 25, 2018 20:13
yaml-flow-colon-11
+STR
+DOC
+SEQ
+MAP {}
=VAL :foo
=VAL :
=VAL :bar
=VAL :
-MAP
-SEQ
@perlpunk
perlpunk / cpp.event
Last active June 25, 2018 20:13
yaml-flow-colon-10
terminate called after throwing an instance of 'YAML::ParserException'
what(): yaml-cpp: error at line 1, column 6: end of map flow not found
+STR
+DOC
+SEQ
+MAP {}
=VAL :a:
=VAL :
@perlpunk
perlpunk / cpp.event
Last active June 25, 2018 20:13
yaml-flow-colon-9
terminate called after throwing an instance of 'YAML::ParserException'
what(): yaml-cpp: error at line 1, column 6: end of map flow not found
+STR
+DOC
+SEQ
+MAP {}
=VAL :a:
=VAL :