import { WorkspacePack } from '../workspace/workspace/workspace-pack';
import { BlobPack } from '../workspace/workspace/pack';
import { GithubTreeNode } from '../workspace/tree/github-tree-node';

export let blob = {
    "sha": "3037bc2bdfba5b1c8885537245a62cd8b8049ce3",
    "node_id": "MDQ6QmxvYjgyMzkzNjIzOjMwMzdiYzJiZGZiYTViMWM4ODg1NTM3MjQ1YTYyY2Q4YjgwNDljZTM=",
    "size": 23,
    "url": "https://api.github.com/repos/qwefgh90/test/git/blobs/3037bc2bdfba5b1c8885537245a62cd8b8049ce3",
    "content": "6raB7J20IOq2geuztCDrs7bsnYzrsKU=\n",
    "encoding": "base64"
}
export let tree = {
    "sha": "af24baf129c486558e37d797e54c9fd81c9c3407",
    "url": "https://api.github.com/repos/qwefgh90/sphinx/git/trees/af24baf129c486558e37d797e54c9fd81c9c3407",
    "tree": [
        {
            "path": ".buildinfo",
            "mode": "100644",
            "type": "blob",
            "sha": "910ab6d5a9cb4de8551bec37eb60847f258d742c",
            "size": 230,
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/blobs/910ab6d5a9cb4de8551bec37eb60847f258d742c",
            "extra": undefined
        },
        {
            "path": ".gitignore",
            "mode": "100644",
            "type": "blob",
            "sha": "0afe7c5b8833f794f4e4d71964864eeda31a0906",
            "size": 97,
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/blobs/0afe7c5b8833f794f4e4d71964864eeda31a0906",
            "extra": undefined
        },
        {
            "path": ".nojekyll",
            "mode": "100644",
            "type": "blob",
            "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
            "size": 0,
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
            "extra": undefined
        },
        {
            "path": ".travis.yml",
            "mode": "100644",
            "type": "blob",
            "sha": "79d5d01e1bd3ac1e2e548b920c90859ee26cf5b6",
            "size": 337,
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/blobs/79d5d01e1bd3ac1e2e548b920c90859ee26cf5b6",
            "extra": undefined
        },
        {
            "path": "README.md",
            "mode": "100644",
            "type": "blob",
            "sha": "d8fe5b0573ccab1832d40101372b31c1633af6d8",
            "size": 153,
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/blobs/d8fe5b0573ccab1832d40101372b31c1633af6d8",
            "extra": undefined
        },
        {
            "path": "_downloads",
            "mode": "040000",
            "type": "tree",
            "sha": "08a42951647aef299e7c6587362b4e154ac55b57",
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/trees/08a42951647aef299e7c6587362b4e154ac55b57",
            "extra": undefined
        },
        {
            "path": "_downloads/376fff9bd23db6ea14d201f2479fb500",
            "mode": "040000",
            "type": "tree",
            "sha": "eb7e518eded9c95282497b82bb27ac4bf9cc6b24",
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/trees/eb7e518eded9c95282497b82bb27ac4bf9cc6b24",
            "extra": undefined
        },
        {
            "path": "_downloads/376fff9bd23db6ea14d201f2479fb500/HashMap.java",
            "mode": "100644",
            "type": "blob",
            "sha": "f2d1c1f7e0759b29753575395a340ce4f2001cb9",
            "size": 90987,
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/blobs/f2d1c1f7e0759b29753575395a340ce4f2001cb9",
            "extra": undefined
        },
        {
            "path": "_downloads/3b9595f7ebd1ba74268e278ba32a6d2d",
            "mode": "040000",
            "type": "tree",
            "sha": "c1699e1fdb3ca93a03ff3cda873dac4760052ca4",
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/trees/c1699e1fdb3ca93a03ff3cda873dac4760052ca4",
            "extra": undefined
        },
        {
            "path": "_downloads/3b9595f7ebd1ba74268e278ba32a6d2d/PythonCExtension.pdf",
            "mode": "100644",
            "type": "blob",
            "sha": "043e1775df7055a05d025703ef2e6f61e56f309b",
            "size": 281438,
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/blobs/043e1775df7055a05d025703ef2e6f61e56f309b",
            "extra": undefined
        },
        {
            "path": "_downloads/4a87751efe99b1b8e03b89acd744c96e",
            "mode": "040000",
            "type": "tree",
            "sha": "c1699e1fdb3ca93a03ff3cda873dac4760052ca4",
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/trees/c1699e1fdb3ca93a03ff3cda873dac4760052ca4",
            "extra": undefined
        },
        {
            "path": "_downloads/4a87751efe99b1b8e03b89acd744c96e/PythonCExtension.pdf",
            "mode": "100644",
            "type": "blob",
            "sha": "043e1775df7055a05d025703ef2e6f61e56f309b",
            "size": 281438,
            "url": "https://api.github.com/repos/qwefgh90/sphinx/git/blobs/043e1775df7055a05d025703ef2e6f61e56f309b",
            "extra": undefined
        }
    ]
};
export let mockWorkspacePack: WorkspacePack = WorkspacePack.of(1, 'mockrepo', 'commitsha1111', 'tresha1111', 'gh-pages', [BlobPack.of('blobsha1111', GithubTreeNode.githubTreeNodeFactory.of(tree.tree[0]), 'aGVsbG8gd29ybGQh')], tree.tree, ['.buildinfo'], '.buildinfo', false, 0, []);

