Skip to content

Instantly share code, notes, and snippets.

View pranavgore09's full-sized avatar

Pranav Gore pranavgore09

View GitHub Profile
@pranavgore09
pranavgore09 / repository_blackbox_test.go
Created March 13, 2018 11:21
test case for `Check that already imported space template upon new import doesn't change the types of it's fields.` mentioned in https://github.com/fabric8-services/fabric8-wit/pull/1148
t.Run("import existing template with WIT field type changes", func(t *testing.T) {
// Create fresh template
spaceTemplateID := uuid.NewV4()
witID := uuid.NewV4()
wiltID := uuid.NewV4()
witgID := uuid.NewV4()
oldTempl := getValidTestTemplateParsed(t, spaceTemplateID, witID, wiltID, witgID)
oldTempl.Template.Name = "old name for space template " + spaceTemplateID.String()
_, err := s.importerRepo.Import(s.Ctx, oldTempl)
require.NoError(t, err)
space: "Project OSIO"
d69a3d70-3233-46bc-bb53-08d9155b40a5
owner
ae68a343-c866-430c-b6ce-a36f0b38d8e5
collaborator
ae68a343-c866-430c-b6ce-a36f0b38d8e5
iteration : Sprint 1
package main
import (
"fmt"
"github.com/fabric8-services/fabric8-wit/criteria"
"github.com/fabric8-services/fabric8-wit/workitem"
)
type Node struct {
@pranavgore09
pranavgore09 / main.go
Created July 4, 2017 08:48
Convert user defined Go language struct into raw sql
package main
import (
"fmt"
"strings"
)
type Node struct {
Name string
Value *string
@pranavgore09
pranavgore09 / questions
Created October 30, 2015 06:00
Test questios YAML
q4:
title: "Question 4 (Dev Tools)"
steps:
- Hit the URL
- This page increments the counter whenever you click on first button.
- Same should happen when you click on second button, but it is not working.
- Find out why and tell us what steps your followed.
q5:
title: "Question 5 (Dev Tools)"
@pranavgore09
pranavgore09 / ds.js
Last active August 29, 2015 14:16
Data Structures in Javascript
// 1.stack C style
// 2.stack JS style
// 3.Queue C style
// 4.Queue JS style
console.log('\n <==================>')
console.log('Example of C style Stack')
// Build stack('C' style) using linked list.
// we do not use pointer specific syntax because objects are by reference.
var Stack = function(){
this.node = function(data){